]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Fix KVM guest fixmap address
authorJames Hogan <james.hogan@imgtec.com>
Mon, 27 Apr 2015 14:07:16 +0000 (15:07 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Jul 2015 12:10:42 +0000 (14:10 +0200)
commit55d8b6ac1cb9a66fa0fc22c00c30c112126ca14c
tree2b15b0718b4a94c31487095d47e0c252b117d67e
parent0fc28ac7a95c9a4cf660d22cc463a5e2ee4ecc5a
MIPS: Fix KVM guest fixmap address

commit 8e748c8d09a9314eedb5c6367d9acfaacddcdc88 upstream.

KVM guest kernels for trap & emulate run in user mode, with a modified
set of kernel memory segments. However the fixmap address is still in
the normal KSeg3 region at 0xfffe0000 regardless, causing problems when
cache alias handling makes use of them when handling copy on write.

Therefore define FIXADDR_TOP as 0x7ffe0000 in the guest kernel mapped
region when CONFIG_KVM_GUEST is defined.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9887/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/mips/include/asm/mach-generic/spaces.h