public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Radim Krčmář" <rkrcmar@redhat.com>
To: Lan Tianyu <tianyu.lan@intel.com>
Cc: pbonzini@redhat.com, tglx@linutronix.de, mingo@redhat.com,
	hpa@zytor.com, x86@kernel.org, kvm@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2] KVM/x86: Increase max vcpu number to 8192
Date: Mon, 21 Aug 2017 17:52:00 +0200	[thread overview]
Message-ID: <20170821155200.GA17079@flask> (raw)
In-Reply-To: <1502844203-10556-1-git-send-email-tianyu.lan@intel.com>

2017-08-15 20:43-0400, Lan Tianyu:
> For HPC usage case, it will create a huge VM with vcpus number as same as host
> cpus and this requires more vcpus support in a single VM. This patch is to
> increase max vcpu number from 288 to 8192 which is current default maximum cpu
> number for Linux kernel.
> 
> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
> ---
> diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
> @@ -35,7 +35,7 @@
>  #include <asm/asm.h>
>  #include <asm/kvm_page_track.h>
>  
> -#define KVM_MAX_VCPUS 288
> +#define KVM_MAX_VCPUS 8192
>  #define KVM_SOFT_MAX_VCPUS 240
>  #define KVM_MAX_VCPU_ID 1023

We will also need to raise KVM_MAX_VCPU_ID to actually allow that many
VCPUs.  If I count correctly, it is impossible to have ID bigger than
this:

 #define KVM_MAX_VCPU_ID (KVM_MAX_VCPUS * 4)

(And we can also use NR_CPUS instead of 8192.)

Thanks.

      reply	other threads:[~2017-08-21 15:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-16  0:43 [PATCH V2] KVM/x86: Increase max vcpu number to 8192 Lan Tianyu
2017-08-21 15:52 ` Radim Krčmář [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170821155200.GA17079@flask \
    --to=rkrcmar@redhat.com \
    --cc=hpa@zytor.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=tianyu.lan@intel.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox