Skip to content

KVM: nSVM: Check MBZ bits in CR3 and CR4 on vmrun of nested guests

Krish Sadhukhan kvm 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 9 repliesIn review
  2. v33 patches 6 repliesApplied
  3. v23 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches1 replySuperseded

Changes in v4 from the cover letter

1. In patch# 1, 'guest_cr4_reserved_bits' has been renamed to 'cr4_guest_rsvd_bits' and it's now located where other CR4-related members are.
2. Rebased to the latest Upstream sources.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: x86: Create mask for guest CR4 reserved bits in kvm_update_cpuid()arch/x86/include/asm/kvm_host.h arch/x86/kvm/cpuid.c arch/x86/kvm/x86.c +1 more+26 -221 reply
2/3KVM: nSVM: Check that MBZ bits in CR3 and CR4 are not set on vmrun of nested guestsarch/x86/kvm/svm/nested.c arch/x86/kvm/svm/svm.h arch/x86/kvm/x86.c+26 -45 replies
3/3kvm-unit-tests: nSVM: Test that MBZ bits in CR3 and CR4 are not set on vmrun of nested guestsx86/svm.h x86/svm_tests.c+95 -43 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchPaolo Bonzini
1/3
2/3Suggeted-by
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH 0/3 v4] KVM: nSVM: Check MBZ bits in CR3 and CR4 on vmrun of nested guests

v3 -> v4:
1. In patch# 1, 'guest_cr4_reserved_bits' has been renamed to 'cr4_guest_rsvd_bits' and it's now located where other CR4-related members are.
2. Rebased to the latest Upstream sources.

[PATCH 1/3 v4] KVM: x86: Create mask for guest CR4 reserved bits in [PATCH 2/3 v4] KVM: nSVM: Check that MBZ bits in CR3 and CR4 are not set on [PATCH 3/3 v4] kvm-unit-tests: nSVM: Test that MBZ bits in CR3 and CR4 are

 arch/x86/include/asm/kvm_host.h |  1 +
 arch/x86/kvm/cpuid.c            |  2 ++
 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 +++++++++++++++++++++
 6 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       |  5 +++
 x86/svm_tests.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 95 insertions(+), 4 deletions(-)

Krish Sadhukhan (1):
kvm-unit-tests: nSVM: Test that MBZ bits in CR3 and CR4 are not set on vmr