Skip to content

KVM: VMX: Sanitize VM-Entry/VM-Exit pairs during setup

Sean Christopherson kvm lkml 2 versions – Applied

Status from this message: Queued, thanks (minus the LBR part).

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Drop the macros. [Paolo]
- Tweak the module param name to try to capture that KVM doesn't check for all possible inconsistencies. [Jim]
- Enable the knob by default. [Paolo]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: VMX: Sanitize VM-Entry/VM-Exit control pairs at kvm_intel load timearch/x86/kvm/vmx/capabilities.h arch/x86/kvm/vmx/vmx.c+36 -90 replies
2/2KVM: VMX: Reject kvm_intel if an inconsistent VMCS config is detectedarch/x86/kvm/vmx/vmx.c+17 -30 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] KVM: VMX: Sanitize VM-Entry/VM-Exit pairs during setup

Sanitize the VM-Entry/VM-Exit load+load and load+clear pairs when kvm_intel is loaded instead of checking both controls at runtime. Not sanitizing means KVM ends up setting non-dynamic bits in the VMCS.

Add an on-by-default knob to reject kvm_intel if an inconsistent VMCS config is detected instead of using a degraded and/or potentially broken setup.

v2:
- Drop the macros. [Paolo]
- Tweak the module param name to try to capture that KVM doesn't check for all possible inconsistencies. [Jim]
- Enable the knob by default. [Paolo]

v1: https://lore.kernel.org/all/[email protected]

Sean Christopherson (2):
KVM: VMX: Sanitize VM-Entry/VM-Exit control pairs at kvm_intel load
time
KVM: VMX: Reject kvm_intel if an inconsistent VMCS config is detected

 arch/x86/kvm/vmx/capabilities.h | 13 +++------
 arch/x86/kvm/vmx/vmx.c          | 52 +++++++++++++++++++++++++++++++--
 2 files changed, 53 insertions(+), 12 deletions(-)

base-commit: 90bde5bea810d766e7046bf5884f2ccf76dd78e9

Signature · 1 line
2.36.1.255.ge46751e96f-goog