Skip to content

Nested SVM fixes v2

Joerg Roedel kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11KVM: SVM: Don't use kmap_atomic in nested_svm_maparch/x86/kvm/svm.c+24 -230 replies
2/11KVM: SVM: Fix wrong interrupt injection in enable_irq_windowsarch/x86/kvm/svm.c+8 -92 replies
3/11KVM: SVM: Fix schedule-while-atomic on nested exception handlingarch/x86/kvm/svm.c+19 -40 replies
4/11KVM: SVM: Sync all control registers on nested vmexitarch/x86/kvm/svm.c+4 -00 replies
5/11KVM: SVM: Annotate nested_svm_map with might_sleep()arch/x86/kvm/svm.c+2 -00 replies
6/11KVM: SVM: Fix nested msr intercept handlingarch/x86/kvm/svm.c+3 -100 replies
7/11KVM: SVM: Don't sync nested cr8 to lapic and backarch/x86/kvm/svm.c+31 -150 replies
8/11KVM: SVM: Activate nested state only when guest state is completearch/x86/kvm/svm.c+9 -60 replies
9/11KVM: SVM: Make lazy FPU switching work with nested svmarch/x86/kvm/svm.c+39 -40 replies
10/11KVM: SVM: Remove newlines from nested trace pointsarch/x86/kvm/trace.h+6 -60 replies
11/11KVM: SVM: Don't call instruction emulator for invd and wbinvdarch/x86/kvm/emulate.c arch/x86/kvm/svm.c+16 -24 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/11] Nested SVM fixes v2

Hi,

this is the second version of the KVM fixes queued up while testing nested svm with Windows 7 64 bit. Changes to the previous version:

* Fixed kunmap bug
* Introduced nested_svm_intercept insteat of nested_svm_exit_handled_atomic()
* Added missing patch description
* Added wbinvd/invd skip functions because the instruction emulator fails on these instructions (found during Windows 7 XP mode bringup)

Please review and comment (or apply ;-) these patches.

Thanks,

Joerg

Shortlog:

Joerg Roedel (11):
KVM: SVM: Don't use kmap_atomic in nested_svm_map
KVM: SVM: Fix wrong interrupt injection in enable_irq_windows
KVM: SVM: Fix schedule-while-atomic on nested exception handling
KVM: SVM: Sync all control registers on nested vmexit
KVM: SVM: Annotate nested_svm_map with might_sleep()
KVM: SVM: Fix nested msr intercept handling
KVM: SVM: Don't sync nested cr8 to lapic and back
KVM: SVM: Activate nested state only when guest state is complete
KVM: SVM: Make lazy FPU switching work with nested svm
KVM: SVM: Remove newlines from nested trace points
KVM: SVM: Don't call instruction emulator for invd and wbinvd

Diffstat:

 arch/x86/kvm/emulate.c |    4 +
 arch/x86/kvm/svm.c     |  218 ++++++++++++++++++++++++++++++++---------------
 arch/x86/kvm/trace.h   |   12 ++--
 3 files changed, 158 insertions(+), 76 deletions(-)