[PATCH v4 0/2] KVM: nSVM: ondemand nested state allocation

From: Maxim Levitsky
Date: Thu Sep 17 2020 - 06:12:16 EST


This is new version of ondemand nested state allocation.

In this version I dropped the changes to set_efer and instead
added a new request KVM_REQ_OUT_OF_MEMORY which makes the kvm
exit to userspace with KVM_EXIT_INTERNAL_ERROR

This request is used in (unlikely) case of memory allocation
failure.

Maxim Levitsky (2):
KVM: add request KVM_REQ_OUT_OF_MEMORY
KVM: nSVM: implement ondemand allocation of the nested state

arch/x86/kvm/svm/nested.c | 42 ++++++++++++++++++++++++++++++
arch/x86/kvm/svm/svm.c | 54 ++++++++++++++++++++++-----------------
arch/x86/kvm/svm/svm.h | 7 +++++
arch/x86/kvm/x86.c | 7 +++++
include/linux/kvm_host.h | 1 +
5 files changed, 87 insertions(+), 24 deletions(-)

--
2.26.2