]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit2fcf4876ada8a293d3b92a1033b8b990a7c613d3
tree6a22bb68cab74c5dde34b3035a269913688de992
parent72f211ecaa80a001c062829894ae5d5effab2b49
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