Skip to content

KVM: nVMX: Bug fixes and cleanup

Sean Christopherson kvm lkml 2 versions – Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 2 repliesApplied
  2. v17 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Rebased to kvm/queue, commit e1ba1a15af73 ("KVM: SVM: Enable INVPCID feature on AMD").

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7KVM: nVMX: Reset the segment cache when stuffing guest segsarch/x86/kvm/vmx/nested.c+2 -00 replies
2/7KVM: nVMX: Reload vmcs01 if getting vmcs12's pages failsarch/x86/kvm/vmx/nested.c+3 -10 replies
3/7KVM: nVMX: Explicitly check for valid guest state for !unrestricted guestarch/x86/kvm/vmx/nested.c arch/x86/kvm/vmx/vmx.c arch/x86/kvm/vmx/vmx.h+12 -71 reply
4/7KVM: nVMX: Move free_nested() below vmx_switch_vmcs()arch/x86/kvm/vmx/nested.c+44 -440 replies
5/7KVM: nVMX: Ensure vmcs01 is the loaded VMCS when freeing nested statearch/x86/kvm/vmx/nested.c+3 -00 replies
6/7KVM: nVMX: Drop redundant VMCS switch and free_nested() callarch/x86/kvm/vmx/nested.c+0 -20 replies
7/7KVM: nVMX: WARN on attempt to switch the currently loaded VMCSarch/x86/kvm/vmx/nested.c+1 -10 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/7] KVM: nVMX: Bug fixes and cleanup

Fix for a brutal segment caching bug that manifested as random nested VM-Enter failures when running with unrestricted guest disabled. A few more bug fixes and cleanups for stuff found by inspection when hunting down the caching issue.

v2:
- Rebased to kvm/queue, commit e1ba1a15af73 ("KVM: SVM: Enable INVPCID feature on AMD").

Sean Christopherson (7):
KVM: nVMX: Reset the segment cache when stuffing guest segs
KVM: nVMX: Reload vmcs01 if getting vmcs12's pages fails
KVM: nVMX: Explicitly check for valid guest state for !unrestricted
guest
KVM: nVMX: Move free_nested() below vmx_switch_vmcs()
KVM: nVMX: Ensure vmcs01 is the loaded VMCS when freeing nested state
KVM: nVMX: Drop redundant VMCS switch and free_nested() call
KVM: nVMX: WARN on attempt to switch the currently loaded VMCS

 arch/x86/kvm/vmx/nested.c | 103 ++++++++++++++++++++------------------
 arch/x86/kvm/vmx/vmx.c    |   8 +--
 arch/x86/kvm/vmx/vmx.h    |   9 ++++
 3 files changed, 65 insertions(+), 55 deletions(-)
Signature · 1 line
2.28.0