• James Hogan's avatar
    MIPS: KVM: Use virt_to_phys() to get commpage PFN · cfacaced
    James Hogan authored
    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: default avatarJames 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: default avatarPaolo Bonzini <pbonzini@redhat.com>
    cfacaced
tlb.c 8.88 KB