Skip to content

KVM: nSVM: Add checks for CR3 and CR4 reserved bits to svm_set_nested_state() and test CR3 non-MBZ reserved bits

Krish Sadhukhan kvm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v24 patches 4 repliesSuperseded
  3. v13 patches 3 repliesSuperseded

Changes in v3 from the cover letter

Patch# 2: The local variable "nested_vmcb_lma" in
nested_vmcb_check_cr3_cr4() has been removed.
Patch# 3: Commit message has been enhanced to explain what the test
is doing and why, when testing the 1-setting of the non-MBZ-reserved bits.
Also, the test for legacy-PAE mode has been added. Commit header reflects this addition.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: nSVM: CR3 MBZ bits are only 63:52arch/x86/kvm/svm/svm.h+1 -10 replies
2/4KVM: nSVM: Add check for reserved bits for CR3, CR4, DR6, DR7 and EFER to svm_set_nested_state()arch/x86/kvm/svm/nested.c+27 -220 replies
3/4nSVM: Test non-MBZ reserved bits in CR3 in long mode and legacy PAE modex86/svm.h x86/svm_tests.c+63 -70 replies
4/4KVM: nSVM: nested_vmcb_checks() needs to check all bits of EFERarch/x86/kvm/svm/nested.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH 0/4 v3] KVM: nSVM: Add checks for CR3 and CR4 reserved bits to svm_set_nested_state() and test CR3 non-MBZ reserved bits

v2 -> v3:
Patch# 2: The local variable "nested_vmcb_lma" in
nested_vmcb_check_cr3_cr4() has been removed.
Patch# 3: Commit message has been enhanced to explain what the test
is doing and why, when testing the 1-setting of the non-MBZ-reserved bits.
Also, the test for legacy-PAE mode has been added. Commit header reflects this addition.

[PATCH 1/4 v3] KVM: nSVM: CR3 MBZ bits are only 63:52
[PATCH 2/4 v3] KVM: nSVM: Add check for reserved bits for CR3, CR4, DR6, [PATCH 3/4 v3] nSVM: Test non-MBZ reserved bits in CR3 in long mode and [PATCH 4/4 v3] KVM: nSVM: nested_vmcb_checks() needs to check all bits

 arch/x86/kvm/svm/nested.c | 52 ++++++++++++++++++++++++++---------------------
 arch/x86/kvm/svm/svm.h    |  2 +-
 2 files changed, 30 insertions(+), 24 deletions(-)

Krish Sadhukhan (3):
KVM: nSVM: CR3 MBZ bits are only 63:52
KVM: nSVM: Add check for reserved bits for CR3, CR4, DR6, DR7 and EFER to svm_set_nested_state()
KVM: nSVM: nested_vmcb_checks() needs to check all bits of EFER

 x86/svm.h       |  4 +++-
 x86/svm_tests.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++------
 2 files changed, 63 insertions(+), 7 deletions(-)

Krish Sadhukhan (1):
nSVM: Test non-MBZ reserved bits in CR3 in long mode and legacy PAE mode