]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: PPC: Book3S: ifdef on CONFIG_KVM_BOOK3S_32_HANDLER for 32bit
authorAlexander Graf <agraf@suse.de>
Sun, 6 Apr 2014 21:31:48 +0000 (23:31 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Apr 2014 10:35:42 +0000 (12:35 +0200)
commitab78475c76bd8c54375d8a778200c59314973d30
tree42e7a42ad33f030e89bcebb8bce7f6aff8a608e7
parent0a8eccefcb3423b45dc0a5a527b4799520e2bc94
KVM: PPC: Book3S: ifdef on CONFIG_KVM_BOOK3S_32_HANDLER for 32bit

The book3s_32 target can get built as module which means we don't see the
config define for it in code. Instead, check on the bool define
CONFIG_KVM_BOOK3S_32_HANDLER whenever we want to know whether we're building
for a book3s_32 host.

This fixes running book3s_32 kvm as a module for me.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_pr.c