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 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html