]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
KVM: Use vcpu-specific gva->hva translation when querying host page size
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 8 Jan 2020 20:24:37 +0000 (12:24 -0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:31:00 +0000 (00:31 -0400)
commitbbc32587e49b5f9e1fb664508881d59465ecc9e6
treef7cdd8f4973e08a66a1986bc9cb34c2992588da0
parentb2a0bb4f69ad5aa87b04f721c5e16b0d77b4ee77
KVM: Use vcpu-specific gva->hva translation when querying host page size

BugLink: https://bugs.launchpad.net/bugs/1866678
[ Upstream commit f9b84e19221efc5f493156ee0329df3142085f28 ]

Use kvm_vcpu_gfn_to_hva() when retrieving the host page size so that the
correct set of memslots is used when handling x86 page faults in SMM.

Fixes: 54bf36aac520 ("KVM: x86: use vcpu-specific functions to read/write/translate GFNs")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/x86/kvm/mmu.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c