KVM: x86: fix APIC page invalidation
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 30 Nov 2017 18:05:45 +0000 (19:05 +0100)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 6 Dec 2017 15:10:34 +0000 (16:10 +0100)
commitb1394e745b9453dcb5b0671c205b770e87dedb87
tree21d291d84206ccfc3c38f476b6d23753df90e94c
parentd29899a30f987de46bcdab3ca4513de2479629e5
KVM: x86: fix APIC page invalidation

Implementation of the unpinned APIC page didn't update the VMCS address
cache when invalidation was done through range mmu notifiers.
This became a problem when the page notifier was removed.

Re-introduce the arch-specific helper and call it from ...range_start.

Reported-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fixes: 38b9917350cb ("kvm: vmx: Implement set_apic_access_page_addr")
Fixes: 369ea8242c0f ("mm/rmap: update to new mmu_notifier semantic v2")
Cc: <stable@vger.kernel.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Andrea Arcangeli <aarcange@redhat.com>
Tested-by: Wanpeng Li <wanpeng.li@hotmail.com>
Tested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c
virt/kvm/kvm_main.c