Skip to content

KVM: nVMX: Don't clobber VM-Entry instruction length on soft INTn exits

Mahmoud Abumandour kvm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesIn review
  2. v23 patches 0 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Rebased onto kvm-x86/next.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: nVMX: Fill VM-Exit instruction length before saving pending eventarch/x86/kvm/vmx/nested.c+3 -11 reply
2/3KVM: nVMX: Don't clobber VM-Entry instruction length when saving soft INTnarch/x86/kvm/vmx/nested.c+1 -10 replies
3/3KVM: selftests: Verify nested VM-Exits while vectoring INT3 and INTntools/testing/selftests/kvm/x86/nested_exceptions_test.c+39 -01 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/3] KVM: nVMX: Don't clobber VM-Entry instruction length on soft INTn exits

KVM writes the length of a soft INTn that L2 was vectoring at the time of a nested VM-Exit into vmcs12's VM-Entry instruction length instead of the VM-Exit instruction length.

Patch 1 is there because Sashiko pointed out that prepare_vmcs12() overwrites the VM-exit instruction length that vmcs12_save_pending_event() saves for soft events.

v3:
- Rebased onto kvm-x86/next.

v2:
- New Patch 1
- Same Patch 2 from v1 (with commit message changes)
- Patch 3 now extends nested_exceptions_test instead of adding a new test (suggested by Sashiko).

Mahmoud Abumandour (3):
KVM: nVMX: Fill VM-Exit instruction length before saving pending event
KVM: nVMX: Don't clobber VM-Entry instruction length when saving soft
INTn
KVM: selftests: Verify nested VM-Exits while vectoring INT3 and INTn

 arch/x86/kvm/vmx/nested.c                     |  6 ++-
 .../kvm/x86/nested_exceptions_test.c          | 39 +++++++++++++++++++
 2 files changed, 43 insertions(+), 2 deletions(-)

base-commit: cbe54fc3462b3949ab27b9ae81fb9ddb509040c7

Signature · 1 line
2.25.1