diff options
author | James Hogan <[email protected]> | 2016-07-08 11:53:21 +0100 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2016-08-01 18:42:21 +0200 |
commit | cfacaced0cce20859de25b61d672edeb9789a1e9 (patch) | |
tree | 5270e1f9435c2b740c8b330514e36fb2e886e5e2 /net/unix/sysctl_net_unix.c | |
parent | 6002bdd3e6688954f5f5c1d71b83862cfd7387d9 (diff) |
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 <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: "Radim Krčmář" <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions