From: Sean Christopherson <seanjc@google.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>,
Vitaly Kuznetsov <vkuznets@redhat.com>,
Wanpeng Li <wanpengli@tencent.com>,
Jim Mattson <jmattson@google.com>, Joerg Roedel <joro@8bytes.org>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] KVM: VMX: Let userspace set IA32_FEAT_CTL at will
Date: Tue, 7 Jun 2022 23:23:50 +0000 [thread overview]
Message-ID: <20220607232353.3375324-1-seanjc@google.com> (raw)
Fix a bug where KVM requires userspace to set the guest CPUID model
in order to enable features via IA32_FEAT_CTL.
Note, the selftest builds on the vmx_msrs_test from the VMX MSRs series[*],
i.e. it won't apply cleanly on kvm/queue.
[*] https://lkml.kernel.org/r/20220607213604.3346000-1-seanjc@google.com
Sean Christopherson (3):
KVM: VMX: Allow userspace to set all supported FEATURE_CONTROL bits
KVM: VMX: Move MSR_IA32_FEAT_CTL.LOCKED check into "is valid" helper
KVM: selftests: Verify userspace can stuff IA32_FEATURE_CONTROL at
will
arch/x86/kvm/vmx/vmx.c | 43 ++++++++++++++---
.../selftests/kvm/include/x86_64/processor.h | 2 +
.../selftests/kvm/x86_64/vmx_msrs_test.c | 47 +++++++++++++++++++
3 files changed, 85 insertions(+), 7 deletions(-)
base-commit: 838fd3e5a7208ee3b95bf73898c135a44a0c589d
--
2.36.1.255.ge46751e96f-goog
next reply other threads:[~2022-06-08 2:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-07 23:23 Sean Christopherson [this message]
2022-06-07 23:23 ` [PATCH 1/3] KVM: VMX: Allow userspace to set all supported FEATURE_CONTROL bits Sean Christopherson
2022-06-07 23:23 ` [PATCH 2/3] KVM: VMX: Move MSR_IA32_FEAT_CTL.LOCKED check into "is valid" helper Sean Christopherson
2022-06-07 23:23 ` [PATCH 3/3] KVM: selftests: Verify userspace can stuff IA32_FEATURE_CONTROL at will 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=20220607232353.3375324-1-seanjc@google.com \
--to=seanjc@google.com \
--cc=jmattson@google.com \
--cc=joro@8bytes.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=vkuznets@redhat.com \
--cc=wanpengli@tencent.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 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®