From: Krish Sadhukhan <krish.sadhukhan@oracle.com>
To: kvm@vger.kernel.org
Cc: pbonzini@redhat.com
Subject: [PATCH 0/3 v2] KVM: nSVM: Check MBZ bits in CR3 and CR4 on vmrun of nested guests
Date: Fri, 8 May 2020 20:36:49 -0400 [thread overview]
Message-ID: <20200509003652.25178-1-krish.sadhukhan@oracle.com> (raw)
v1 -> v2:
1. Removed the formation of the mask for guest CR4 bits, from
kvm_valid_cr4() to kvm_update_cpuid(). The mask is stashed
in a global variable called '__guest_cr4_reserved_bits'.
Patch# 1 contains these changes.
2. nested_vmcb_checks() now uses is_long_mode(), instead of the
guest EFER, to check for Long Mode. Patch# 2 contains these
changes.
3. Patch# 3 contains the kvm-unit-tests. No changes have been
made to the tests.
[PATCH 1/3 v2] KVM: x86: Create mask for guest CR4 reserved bits in
[PATCH 2/3 v2] KVM: nSVM: Check that MBZ bits in CR3 and CR4 are not set on
[PATCH 3/3 v2] KVM: nSVM: Test that MBZ bits in CR3 and CR4 are not set on vmrun
arch/x86/kvm/cpuid.c | 3 +++
arch/x86/kvm/svm/nested.c | 22 ++++++++++++++++++++--
arch/x86/kvm/svm/svm.h | 5 ++++-
arch/x86/kvm/x86.c | 27 ++++-----------------------
arch/x86/kvm/x86.h | 21 +++++++++++++++++++++
5 files changed, 52 insertions(+), 26 deletions(-)
Krish Sadhukhan (2):
KVM: x86: Create mask for guest CR4 reserved bits in kvm_update_cpuid()
nSVM: Check that MBZ bits in CR3 and CR4 are not set on vmrun of nested gu
x86/svm.h | 6 ++++
x86/svm_tests.c | 105 +++++++++++++++++++++++++++++++++++++++++++++++++-------
2 files changed, 99 insertions(+), 12 deletions(-)
Krish Sadhukhan (1):
nSVM: Test that MBZ bits in CR3 and CR4 are not set on vmrun of nested gue
next reply other threads:[~2020-05-09 1:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-09 0:36 Krish Sadhukhan [this message]
2020-05-09 0:36 ` [PATCH 1/3 v2] KVM: x86: Create mask for guest CR4 reserved bits in kvm_update_cpuid() Krish Sadhukhan
2020-05-09 12:56 ` Paolo Bonzini
2020-05-09 0:36 ` [PATCH 2/3 v2] KVM: nSVM: Check that MBZ bits in CR3 and CR4 are not set on vmrun of nested guests Krish Sadhukhan
2020-05-09 0:36 ` [PATCH 3/3 v2] KVM: nSVM: Test " Krish Sadhukhan
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=20200509003652.25178-1-krish.sadhukhan@oracle.com \
--to=krish.sadhukhan@oracle.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.