On 20/08/20 11:13, Maxim Levitsky wrote:
> @@ -3912,6 +3914,14 @@ static int svm_pre_leave_smm(struct kvm_vcpu *vcpu,
> const char *smstate)
> vmcb_gpa = GET_SMSTATE(u64, smstate, 0x7ee0);
>
> if (guest) {
> + /*
> + * This can happen if SVM was not enabled p
On Thu, 2020-08-20 at 11:58 +0200, Paolo Bonzini wrote:
> On 20/08/20 11:13, Maxim Levitsky wrote:
> > @@ -3912,6 +3914,14 @@ static int svm_pre_leave_smm(struct kvm_vcpu *vcpu,
> > const char *smstate)
> > vmcb_gpa = GET_SMSTATE(u64, smstate, 0x7ee0);
> >
> > if (guest) {
> > +
This way we don't waste memory on VMs which don't enable
nesting virtualization
Signed-off-by: Maxim Levitsky
---
arch/x86/kvm/svm/nested.c | 43 +++
arch/x86/kvm/svm/svm.c| 62 +++
arch/x86/kvm/svm/svm.h| 6
3 files chang
3 matches
Mail list logo