]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - arch/powerpc/kvm/powerpc.c
KVM: PPC: Disable NX for old magic page using guests
authorAlexander Graf <agraf@suse.de>
Sun, 11 May 2014 23:08:32 +0000 (01:08 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 30 May 2014 12:26:24 +0000 (14:26 +0200)
commitf3383cf80e417e86fcc84a2eb4c96bc52842d8d9
tree69cde42c1f516992ef2e6db665d1098ee0eac951
parent1f365bb0de12da4a9ef8e56ffba2218d9a026011
KVM: PPC: Disable NX for old magic page using guests

Old guests try to use the magic page, but map their trampoline code inside
of an NX region.

Since we can't fix those old kernels, try to detect whether the guest is sane
or not. If not, just disable NX functionality in KVM so that old guests at
least work at all. For newer guests, add a bit that we can set to keep NX
functionality available.

Signed-off-by: Alexander Graf <agraf@suse.de>
Documentation/virtual/kvm/ppc-pv.txt
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/uapi/asm/kvm_para.h
arch/powerpc/kvm/book3s_64_mmu.c
arch/powerpc/kvm/powerpc.c