Skip to content

Nested SVM cleanups

Joerg Roedel kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12kvm/svm: make nested svm debugging runtime configurablearch/x86/kvm/svm.c+9 -31 reply
2/12kvm/svm: add helper functions for global interrupt flagarch/x86/kvm/svm.c+23 -82 replies
3/12kvm/svm: optimize nested #vmexitarch/x86/kvm/svm.c+33 -351 reply
4/12kvm/svm: optimize nested vmrunarch/x86/kvm/svm.c+20 -61 reply
5/12kvm/svm: copy only necessary parts of the control area on vmrun/vmexitarch/x86/kvm/svm.c+34 -23 replies
6/12kvm/svm: complete interrupts after handling nested exitsarch/x86/kvm/svm.c+3 -21 reply
7/12kvm/svm: move nested svm state into seperate structarch/x86/kvm/svm.c+33 -291 reply
8/12kvm/svm: cache nested interceptsarch/x86/kvm/svm.c+23 -76 replies
9/12kvm/svm: consolidate nested_svm_exit_handledarch/x86/kvm/svm.c+48 -601 reply
10/12kvm/svm: do nested vmexit in nested_svm_exit_handledarch/x86/kvm/svm.c+19 -221 reply
11/12kvm/svm: handle #pf intercepts in nested_svm_exit_handled directlyarch/x86/kvm/svm.c+24 -25 replies
12/12kvm/svm: simplify nested_svm_check_exceptionarch/x86/kvm/svm.c+8 -111 reply

Reviews trailers per patch

10 of 12 patches have a Reviewed-by or Acked-by.

PatchAlexander Graf
1/12A-b
2/12
3/12A-b
4/12A-b
5/12A-b
6/12A-b
7/12A-b
8/12
9/12A-b
10/12A-b
11/12A-b
12/12A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/12] Nested SVM cleanups

Hi,

here is a first round of patches to clean up the code for SVM virtualization for KVM on AMD. There is more to clean up but since I am on vacation the rest of the week here is what I have queued up so far. Maybe this saves me from rebasing this code next week ;-)
I tested these patches with KVM in KVM and it works stable with and without nested SMP. It doesn't seem to break anything.

Joerg

Diffstat:

 arch/x86/kvm/svm.c |  422 +++++++++++++++++++++++++++++++--------------------
 1 files changed, 256 insertions(+), 166 deletions(-)

Shortlog:

Joerg Roedel (12):
kvm/svm: make nested svm debugging runtime configurable kvm/svm: add helper functions for global interrupt flag kvm/svm: optimize nested #vmexit
kvm/svm: optimize nested vmrun
kvm/svm: copy only necessary parts of the control area on vmrun/vmexit kvm/svm: complete interrupts after handling nested exits kvm/svm: move nested svm state into seperate struct kvm/svm: cache nested intercepts
kvm/svm: consolidate nested_svm_exit_handled
kvm/svm: do nested vmexit in nested_svm_exit_handled kvm/svm: handle #pf intercepts in nested_svm_exit_handled directly kvm/svm: simplify nested_svm_check_exception