KVM: nSVM: fix condition for filtering async PF
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 16 May 2020 13:19:06 +0000 (09:19 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 May 2020 17:11:10 +0000 (13:11 -0400)
commita3535be731c2a343912578465021f50937f7b099
treec76069c6bcaf3236e017885befb06f49da1085e6
parent88197e6ab33a909e54f683b5e3a2e45cc307108a
KVM: nSVM: fix condition for filtering async PF

Async page faults have to be trapped in the host (L1 in this case),
since the APF reason was passed from L0 to L1 and stored in the L1 APF
data page.  This was completely reversed: the page faults were passed
to the guest, a L2 hypervisor.

Cc: stable@vger.kernel.org
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c