]> git.baikalelectronics.ru Git - kernel.git/commit
KVM/nSVM: properly map nested VMCB
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 4 Jun 2019 16:09:39 +0000 (18:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Jun 2019 17:27:27 +0000 (19:27 +0200)
commitc1ca2df455ca1500615a435d76d1cf10d261259f
treec6b4164bdf4b949489b517ed5e97b069bdb1f6e4
parent2e9936ff03d0d7e1128fd4c48389fcc89f1c1d02
KVM/nSVM: properly map nested VMCB

Commit e82de30380db ("KVM/nSVM: Use the new mapping API for mapping guest
memory") broke nested SVM completely: kvm_vcpu_map()'s second parameter is
GFN so vmcb_gpa needs to be converted with gpa_to_gfn(), not the other way
around.

Fixes: e82de30380db ("KVM/nSVM: Use the new mapping API for mapping guest memory")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c