]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2b2e26e9286f5794797c1fbad772302240e6aab
tree69cde42c1f516992ef2e6db665d1098ee0eac951
parent5bdd69f8a3b979e6c8036ad80727830005b030cb
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