Home
last modified time | relevance | path

Searched hist:cfacaced0cce20859de25b61d672edeb9789a1e9 (Results 1 – 1 of 1) sorted by relevance

/linux/arch/mips/kvm/
H A Dtlb.cdiff cfacaced0cce20859de25b61d672edeb9789a1e9 Fri Jul 08 12:53:21 CEST 2016 James Hogan <james.hogan@imgtec.com> MIPS: KVM: Use virt_to_phys() to get commpage PFN

Calculate the PFN of the commpage using virt_to_phys() instead of
CPHYSADDR(). This is more portable as kzalloc() may allocate from XKPhys
instead of KSeg0 on 64-bit kernels, which CPHYSADDR() doesn't handle.
This is sufficient for highmem kernels too since kzalloc() will allocate
from lowmem in KSeg0.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>