Skip to content

KVM: nVMX Add IA32_PAT consistency checks

Sean Christopherson kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v6 Latest7 patches 6 repliesIn review

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Check "load IA32_PAT" VM-exit control on vmentryarch/x86/kvm/vmx/nested.c+4 -00 replies
2/7Check "load IA32_PAT" VM-entry control on vmentryarch/x86/kvm/vmx/nested.c+4 -00 replies
3/7KVM: nVMX: Move guest non-reg state checks to VM-Exit patharch/x86/kvm/vmx/nested.c+15 -151 reply
4/7KVM: nVMX: Rename and split top-level consistency checks to match SDMarch/x86/kvm/vmx/nested.c+25 -141 reply
5/7KVM: nVMX: Set VM-{Fail,Exit} failure info via params, not return valarch/x86/kvm/vmx/nested.c+35 -263 replies
6/7KVM: nVMX: Collapse nested_check_host_control_regs() into its callerarch/x86/kvm/vmx/nested.c+6 -201 reply
7/7KVM: nVMX: Return -EINVAL when signaling failure in VM-Entry helpersarch/x86/kvm/vmx/nested.c+12 -120 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchKarl HeubaumSean ChristophersonJim MattsonKrish Sadhukhan
1/7R-b R-b R-b
2/7R-b R-b R-b
3/7R-b
4/7R-b
5/7
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/7] KVM: nVMX Add IA32_PAT consistency checks

This is a continuation of Krish's series, which has suffered a teeny tiny bit of scope creep (sorry Krish). This is essentially a new series, e.g. only the actual PAT-related patches, which haven't changed since v2, are retained from previous versions. But, to avoid unnecessary conflicts I'm resending everything in one happy series.

The direction change relative to v5 is to self-document the top-level consistency check functions by a) renaming the functions and b) using a dedicated parameter to "return" the failure information, as suggested by Paolo. Previous versions had been taking the approach of using the return value itself to document that a failed "postreqs" leads to a VM-Exit, which was simply putting lipstick on a pig.

Krish Sadhukhan (2):
Check "load IA32_PAT" VM-exit control on vmentry Check "load IA32_PAT" VM-entry control on vmentry

Sean Christopherson (5):
KVM: nVMX: Move guest non-reg state checks to VM-Exit path
KVM: nVMX: Rename and split top-level consistency checks to match SDM
KVM: nVMX: Set VM-{Fail,Exit} failure info via params, not return val
KVM: nVMX: Collapse nested_check_host_control_regs() into its caller
KVM: nVMX: Return -EINVAL when signaling failure in VM-Entry helpers

 arch/x86/kvm/vmx/nested.c | 150 +++++++++++++++++++++-----------------
 1 file changed, 82 insertions(+), 68 deletions(-)
Signature · 1 line
2.21.0