diff options
author | James Hogan <james.hogan@imgtec.com> | 2016-07-08 11:53:22 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-08-01 18:42:22 +0200 |
commit | 28cc5bd568745a58bb06291ac336d06b66c66dff (patch) | |
tree | d8c1dd5dd137177910f127f125e0e402be3ffded /net/x25 | |
parent | cfacaced0cce20859de25b61d672edeb9789a1e9 (diff) |
MIPS: KVM: Use kmap instead of CKSEG0ADDR()
There are several unportable uses of CKSEG0ADDR() in MIPS KVM, which
implicitly assume that a host physical address will be in the low 512MB
of the physical address space (accessible in KSeg0). These assumptions
don't hold for highmem or on 64-bit kernels.
When interpreting the guest physical address when reading or overwriting
a trapping instruction, use kmap_atomic() to get a usable virtual
address to access guest memory, which is portable to 64-bit and highmem
kernels.
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>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions