提交 c14dea04 编写于 作者: A Alexander Graf 提交者: Avi Kivity

KVM: PPC: Use KVM_BOOK3S_HANDLER

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: NAlexander Graf <agraf@suse.de>
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 c7f38f46
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#ifdef __ASSEMBLY__ #ifdef __ASSEMBLY__
#ifdef CONFIG_KVM_BOOK3S_64_HANDLER #ifdef CONFIG_KVM_BOOK3S_HANDLER
#include <asm/kvm_asm.h> #include <asm/kvm_asm.h>
...@@ -55,7 +55,7 @@ kvmppc_resume_\intno: ...@@ -55,7 +55,7 @@ kvmppc_resume_\intno:
.macro DO_KVM intno .macro DO_KVM intno
.endm .endm
#endif /* CONFIG_KVM_BOOK3S_64_HANDLER */ #endif /* CONFIG_KVM_BOOK3S_HANDLER */
#else /*__ASSEMBLY__ */ #else /*__ASSEMBLY__ */
......
...@@ -136,7 +136,7 @@ struct paca_struct { ...@@ -136,7 +136,7 @@ struct paca_struct {
u64 startpurr; /* PURR/TB value snapshot */ u64 startpurr; /* PURR/TB value snapshot */
u64 startspurr; /* SPURR value snapshot */ u64 startspurr; /* SPURR value snapshot */
#ifdef CONFIG_KVM_BOOK3S_64_HANDLER #ifdef CONFIG_KVM_BOOK3S_HANDLER
struct { struct {
u64 esid; u64 esid;
u64 vsid; u64 vsid;
......
...@@ -22,8 +22,12 @@ config KVM ...@@ -22,8 +22,12 @@ config KVM
select ANON_INODES select ANON_INODES
select KVM_MMIO select KVM_MMIO
config KVM_BOOK3S_HANDLER
bool
config KVM_BOOK3S_64_HANDLER config KVM_BOOK3S_64_HANDLER
bool bool
select KVM_BOOK3S_HANDLER
config KVM_BOOK3S_64 config KVM_BOOK3S_64
tristate "KVM support for PowerPC book3s_64 processors" tristate "KVM support for PowerPC book3s_64 processors"
......
...@@ -14,7 +14,7 @@ CFLAGS_emulate.o := -I. ...@@ -14,7 +14,7 @@ CFLAGS_emulate.o := -I.
common-objs-y += powerpc.o emulate.o common-objs-y += powerpc.o emulate.o
obj-$(CONFIG_KVM_EXIT_TIMING) += timing.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) AFLAGS_booke_interrupts.o := -I$(obj)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册