From: "Meyer, Kyle" <kyle.meyer@hpe.com>
To: Sean Christopherson <seanjc@google.com>
Cc: "pbonzini@redhat.com" <pbonzini@redhat.com>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"mingo@redhat.com" <mingo@redhat.com>,
"bp@alien8.de" <bp@alien8.de>,
"dave.hasen@linux.intel.com" <dave.hasen@linux.intel.com>,
"x86@kernel.org" <x86@kernel.org>,
"hpa@zytor.com" <hpa@zytor.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"vkuznets@redhat.com" <vkuznets@redhat.com>,
"dmatlack@google.com" <dmatlack@google.com>,
"Anderson, Russ" <russ.anderson@hpe.com>,
"Sivanich, Dimitri" <dimitri.sivanich@hpe.com>,
"Wahl, Steve" <steve.wahl@hpe.com>
Subject: Re: [PATCH] KVM: x86: Increase KVM_MAX_VCPUS to 4096
Date: Thu, 17 Aug 2023 20:23:16 +0000 [thread overview]
Message-ID: <MW5PR84MB17135D3B5BC50FCFD3D9DEEE9B1AA@MW5PR84MB1713.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <ZNuxtU7kxnv1L88H@google.com>
> > 4096 is the current maximum value because of the Hyper-V TLFS. See
> > BUILD_BUG_ON in arch/x86/kvm/hyperv.c, commit 79661c3, and Vitaly's
> > comment on https://lore.kernel.org/all/87r136shcc.fsf@redhat.com.
>
> Mostly out of curiosity, do you care about Hyper-V support? If not, at some
> point it'd probably be worth exploring a CONFIG_KVM_HYPERV option to allow
> disabling KVM's Hyper-V support at compile time so that we're not bound by the
> restrictions of the TLFS.
Yes, I care about Hyper-V support. I would like this limitation to be addressed
in the future.
> Rather than tightly couple this to MAXSMP, what if we add a Kconfig? I know of
> at least one scenario, SVM's AVIC/x2AVIC, where it would be desirable to configure
> KVM to a much smaller maximum. The biggest downside I can think of is that KVM
> selftests would need to be updated (they assume the max is >=512), and some of the
> tests might be completely invalid if KVM_MAX_VCPUS is too low (<256?).
That sounds good to me. I would prefer to set the range from 1024 to 4096 in
this patch.
next prev parent reply other threads:[~2023-08-17 20:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 15:35 Kyle Meyer
2023-08-15 17:11 ` Sean Christopherson
2023-08-17 20:23 ` Meyer, Kyle [this message]
2023-08-17 23:44 ` Sean Christopherson
2023-09-06 15:54 ` Vitaly Kuznetsov
2023-09-08 17:44 ` Sean Christopherson
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=MW5PR84MB17135D3B5BC50FCFD3D9DEEE9B1AA@MW5PR84MB1713.NAMPRD84.PROD.OUTLOOK.COM \
--to=kyle.meyer@hpe.com \
--cc=bp@alien8.de \
--cc=dave.hasen@linux.intel.com \
--cc=dimitri.sivanich@hpe.com \
--cc=dmatlack@google.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=russ.anderson@hpe.com \
--cc=seanjc@google.com \
--cc=steve.wahl@hpe.com \
--cc=tglx@linutronix.de \
--cc=vkuznets@redhat.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
all inboxes | Powered by JetHome®