From: Sean Christopherson <seanjc@google.com>
To: Jim Mattson <jmattson@google.com>
Cc: kvm@vger.kernel.org, pbonzini@redhat.com
Subject: Re: [PATCH] KVM: x86: Advertise that the SMM_CTL MSR is not supported
Date: Thu, 1 Dec 2022 00:08:27 +0000 [thread overview]
Message-ID: <Y4fwe35utWwqycCv@google.com> (raw)
In-Reply-To: <Y0Cn4p6DjgO2skrL@google.com>
On Fri, Oct 07, 2022, Sean Christopherson wrote:
> On Fri, Oct 07, 2022, Jim Mattson wrote:
> > CPUID.80000021H:EAX[bit 9] indicates that the SMM_CTL MSR (0xc0010116)
> > is not supported. This defeature can be advertised by
> > KVM_GET_SUPPORTED_CPUID regardless of whether or not the host
> > enumerates it.
>
> Might be worth noting that KVM will only enumerate the bit if the host happens to
> have a max extend leaf > 80000021.
> >
> > Signed-off-by: Jim Mattson <jmattson@google.com>
> > ---
> > arch/x86/kvm/cpuid.c | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
> > index 2796dde06302..b748fac2ae37 100644
> > --- a/arch/x86/kvm/cpuid.c
> > +++ b/arch/x86/kvm/cpuid.c
> > @@ -1199,8 +1199,12 @@ static inline int __do_cpuid_func(struct kvm_cpuid_array *array, u32 function)
> > * Other defined bits are for MSRs that KVM does not expose:
> > * EAX 3 SPCL, SMM page configuration lock
> > * EAX 13 PCMSR, Prefetch control MSR
> > + *
> > + * KVM doesn't support SMM_CTL.
> > + * EAX 9 SMM_CTL MSR is not supported
> > */
> > entry->eax &= BIT(0) | BIT(2) | BIT(6);
>
> I don't suppose I can bribe you to add a kvm_only_cpuid_leafs entry for these? :-)
Ha! Someone else must have heard me whining :-)
https://lore.kernel.org/all/20221129235816.188737-5-kim.phillips@amd.com
next prev parent reply other threads:[~2022-12-01 0:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-07 22:16 [PATCH] KVM: x86: Advertise that the SMM_CTL MSR is not supported Jim Mattson
2022-10-07 22:27 ` Sean Christopherson
2022-12-01 0:08 ` Sean Christopherson [this message]
2022-12-02 18:45 ` Paolo Bonzini
2022-12-02 18:50 ` Paolo Bonzini
2022-12-02 18:58 ` 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=Y4fwe35utWwqycCv@google.com \
--to=seanjc@google.com \
--cc=jmattson@google.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.