Skip to content

KVM: nSVM: Fixes for SVM_EXIT_CR0_SEL_WRITE injection

Yosry Ahmed kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 svm, with the proper stable@ email and the tweaks to

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: nSVM: Remove redundant cases in nested_svm_intercept()arch/x86/kvm/svm/nested.c+0 -100 replies
2/3KVM: nSVM: Propagate SVM_EXIT_CR0_SEL_WRITE correctly for LMSW emulationarch/x86/kvm/svm/svm.c+9 -92 replies
3/3KVM: nSVM: Avoid incorrect injection of SVM_EXIT_CR0_SEL_WRITEarch/x86/kvm/svm/svm.c+13 -34 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] KVM: nSVM: Fixes for SVM_EXIT_CR0_SEL_WRITE injection

A couple of fixes for injecting SVM_EXIT_CR0_SEL_WRITE to L1 when emulating MOV-to-CR0 or LMSW. LMSW is handled by the emulator even in some cases where decode assists are enabled, so it's a more important fix. An example would be if L0 intercepts SVM_EXIT_WRITE_CR0 while L1 intercepts SVM_EXIT_CR0_SEL_WRITE.

Patch is an unrelated cleanup that can be dropped/merged separately.

Yosry Ahmed (3):
KVM: nSVM: Remove redundant cases in nested_svm_intercept()
KVM: nSVM: Propagate SVM_EXIT_CR0_SEL_WRITE correctly for LMSW
emulation
KVM: nSVM: Avoid incorrect injection of SVM_EXIT_CR0_SEL_WRITE

 arch/x86/kvm/svm/nested.c | 10 ----------
 arch/x86/kvm/svm/svm.c    | 34 ++++++++++++++++++++++------------
 2 files changed, 22 insertions(+), 22 deletions(-)
Signature · 1 line
2.51.1.821.gb6fe4d2222-goog