KVM: VMX: Add helper+macros to do sec exec adjustment
Status from this message: Queued with the rest, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | KVM: VMX: Rename vmx_*_supported() helpers to cpu_has_vmx_*()arch/ arch/ | +11 | 0 replies | |
| 2/4 | KVM: VMX: Unconditionally clear CPUID.INVPCID if !CPUID.PCIDarch/ | +11 | 2 replies | |
| 3/4 | KVM: VMX: Rename RDTSCP secondary exec control name to insert "ENABLE"arch/ arch/ arch/ +2 more | +10 | 1 reply | |
| 4/4 | KVM: VMX: Add a helper and macros to reduce boilerplate for sec exec ctlsarch/ | +41 | 4 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Jim Mattson |
|---|---|
| 1/4 | |
| 2/4 | |
| 3/4 | R-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] KVM: VMX: Add helper+macros to do sec exec adjustment
Add a helper function and macro wrappers to consolidate code for adjusting secondary execution controls based on guest CPUID. The adjustments are effectively 10+ lines of copy+paste for each control, with slight tweaks to account for annoying differences, e.g. XSAVES has additional checks.
Patches 1-3 are prep work to make INVPCID and RDTSCP align with the "standard" nomenclature so that they don't require special casing.
Sean Christopherson (4):
KVM: VMX: Rename vmx_*_supported() helpers to cpu_has_vmx_*()
KVM: VMX: Unconditionally clear CPUID.INVPCID if !CPUID.PCID
KVM: VMX: Rename RDTSCP secondary exec control name to insert "ENABLE"
KVM: VMX: Add a helper and macros to reduce boilerplate for sec exec
ctls
arch/x86/include/asm/vmx.h | 2 +- arch/x86/kvm/vmx/capabilities.h | 10 +- arch/x86/kvm/vmx/nested.c | 4 +- arch/x86/kvm/vmx/vmx.c | 150 +++++++----------- .../selftests/kvm/include/x86_64/vmx.h | 2 +- 5 files changed, 64 insertions(+), 104 deletions(-)
Signature · 1 line
2.28.0