[PATCH v4 0/6] nSVM/SVM features

From: Maxim Levitsky
Date: Tue Mar 22 2022 - 13:41:03 EST


This is a set of patches for optional SVM nested features.

V4: rebased on top of kvm/queue + my patch series 'SVM fixes + refactoring'
and incorporated all review feedback.

This was tested with kvm unit test, running on L0,L1, and L2,
and no new failures were seen.

This time I also tested this with all new features disabled in L1,
and in L2, to avoid repeating an issue I had in nested tsc scaling.

Best regards,
Maxim Levitsky

Maxim Levitsky (6):
KVM: x86: nSVM: correctly virtualize LBR msrs when L2 is running
KVM: x86: nSVM: implement nested LBR virtualization
KVM: x86: nSVM: support PAUSE filtering when L0 doesn't intercept
PAUSE
KVM: x86: nSVM: implement nested vGIF
KVM: x86: allow per cpu apicv inhibit reasons
KVM: x86: SVM: allow AVIC to co-exist with a nested guest running

arch/x86/include/asm/kvm-x86-ops.h | 1 +
arch/x86/include/asm/kvm_host.h | 6 ++
arch/x86/kvm/svm/avic.c | 7 ++
arch/x86/kvm/svm/nested.c | 83 +++++++++++++--
arch/x86/kvm/svm/svm.c | 162 +++++++++++++++++++++++------
arch/x86/kvm/svm/svm.h | 41 ++++++--
arch/x86/kvm/x86.c | 14 ++-
7 files changed, 264 insertions(+), 50 deletions(-)

--
2.26.3