]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Add sanity checking to vcpu_run
authorAlexander Graf <agraf@suse.de>
Wed, 10 Aug 2011 11:57:08 +0000 (13:57 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:27 +0000 (19:52 +0300)
commitce1fdcac8978d5397b2d7e3120cc22c851301757
tree129cf6f362fb623c80f8c2aa89c6fb3030b04c8d
parent4661ace80566b40a111f5fb77520670a9023ed3b
KVM: PPC: Add sanity checking to vcpu_run

There are multiple features in PowerPC KVM that can now be enabled
depending on the user's wishes. Some of the combinations don't make
sense or don't work though.

So this patch adds a way to check if the executing environment would
actually be able to run the guest properly. It also adds sanity
checks if PVR is set (should always be true given the current code
flow), if PAPR is only used with book3s_64 where it works and that
HV KVM is only used in PAPR mode.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm.h
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/44x.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/e500.c
arch/powerpc/kvm/powerpc.c