]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
KVM: PPC: Use KVM_BOOK3S_HANDLER
authorAlexander Graf <agraf@suse.de>
Thu, 15 Apr 2010 22:11:41 +0000 (00:11 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:18:28 +0000 (12:18 +0300)
So far we had a lot of conditional code on CONFIG_KVM_BOOK3S_64_HANDLER.
As we're moving towards common code between 32 and 64 bits, most of
these ifdefs can be moved to a more generic term define, called
CONFIG_KVM_BOOK3S_HANDLER.

This patch adds the new generic config option and moves ifdefs over.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_book3s_asm.h
arch/powerpc/include/asm/paca.h
arch/powerpc/kvm/Kconfig
arch/powerpc/kvm/Makefile

index e915e7dfa62205a07a96c7e2fc5c0aa923ae4563..36fdb3aff30ba938a4288b774e087af456d60313 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifdef __ASSEMBLY__
 
-#ifdef CONFIG_KVM_BOOK3S_64_HANDLER
+#ifdef CONFIG_KVM_BOOK3S_HANDLER
 
 #include <asm/kvm_asm.h>
 
@@ -55,7 +55,7 @@ kvmppc_resume_\intno:
 .macro DO_KVM intno
 .endm
 
-#endif /* CONFIG_KVM_BOOK3S_64_HANDLER */
+#endif /* CONFIG_KVM_BOOK3S_HANDLER */
 
 #else  /*__ASSEMBLY__ */
 
index dc3ccdf81996e5d5cf8a811c168b024bb69b52e1..33347ea4b47a39dc01bd188ea2a3a509181def2b 100644 (file)
@@ -136,7 +136,7 @@ struct paca_struct {
        u64 startpurr;                  /* PURR/TB value snapshot */
        u64 startspurr;                 /* SPURR value snapshot */
 
-#ifdef CONFIG_KVM_BOOK3S_64_HANDLER
+#ifdef CONFIG_KVM_BOOK3S_HANDLER
        struct  {
                u64     esid;
                u64     vsid;
index 60624cc9f4d4067a2c891e862a83b7c1a83f2de0..8ef37664fda19da6e222fc35b60122ef454c4f92 100644 (file)
@@ -22,8 +22,12 @@ config KVM
        select ANON_INODES
        select KVM_MMIO
 
+config KVM_BOOK3S_HANDLER
+       bool
+
 config KVM_BOOK3S_64_HANDLER
        bool
+       select KVM_BOOK3S_HANDLER
 
 config KVM_BOOK3S_64
        tristate "KVM support for PowerPC book3s_64 processors"
index 0a67310299a62685ef0fa7789edcdab1280815e8..f621ce64363bb0823f4ea153c11d35e8647161d8 100644 (file)
@@ -14,7 +14,7 @@ CFLAGS_emulate.o  := -I.
 
 common-objs-y += powerpc.o emulate.o
 obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
-obj-$(CONFIG_KVM_BOOK3S_64_HANDLER) += book3s_exports.o
+obj-$(CONFIG_KVM_BOOK3S_HANDLER) += book3s_exports.o
 
 AFLAGS_booke_interrupts.o := -I$(obj)