]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: drop KVM_PV_REASON_PAGE_READY case from kvm_handle_page_fault()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 7 May 2020 14:36:02 +0000 (16:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:35 +0000 (16:21 -0400)
commit52e0921dc6a45e58730f7101179e78f29f93e78a
tree52fa2906966ab56f900249ee6e762d82f00f6e27
parent86246061c3387741c6834af6b0198b3992023ad8
KVM: x86: drop KVM_PV_REASON_PAGE_READY case from kvm_handle_page_fault()

KVM guest code in Linux enables APF only when KVM_FEATURE_ASYNC_PF_INT
is supported, this means we will never see KVM_PV_REASON_PAGE_READY
when handling page fault vmexit in KVM.

While on it, make sure we only follow genuine page fault path when
APF reason is zero. If we happen to see something else this means
that the underlying hypervisor is misbehaving. Leave WARN_ON_ONCE()
to catch that.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c