KVM: nSVM: delay MSR permission processing to first nested VM run
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Sep 2020 11:43:14 +0000 (07:43 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:59:30 +0000 (07:59 -0400)
commita7d5c7ce41ac1e2537d78ddb57ef0ac4f737aa19
treed62bbdc7384af4458a9842d943cc85f96a7be0ed
parent729c15c20f1a7c9ad1d09a603ad1aa7fb60b1f88
KVM: nSVM: delay MSR permission processing to first nested VM run

Allow userspace to set up the memory map after KVM_SET_NESTED_STATE;
to do so, move the call to nested_svm_vmrun_msrpm inside the
KVM_REQ_GET_NESTED_STATE_PAGES handler (which is currently
not used by nSVM).  This is similar to what VMX does already.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c