]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nSVM: implement on demand allocation of the nested state
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 1 Oct 2020 11:29:54 +0000 (14:29 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 21:48:48 +0000 (17:48 -0400)
commit1f6c95417a6da939863016af642f1d3ac0a40c4c
tree6a22bb68cab74c5dde34b3035a269913688de992
parent63cb94d17247915b55b40888bda94459794f8e6c
KVM: nSVM: implement on demand allocation of the nested state

This way we don't waste memory on VMs which don't use nesting
virtualization even when the host enabled it for them.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20201001112954.6258-5-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h