Skip to contentSkip to conversation

Include PPC64 target in buildsystem

PATCH In review Alexander Graf 1 participant 1 message Jul 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 21/23 Include PPC64 target in buildsystem

Now we have everything in place to be able to build KVM, so let's add it as config option and in the Makefile.

---
 arch/powerpc/kvm/Kconfig  |   17 +++++++++++++++++
 arch/powerpc/kvm/Makefile |   15 ++++++++++++++-
 2 files changed, 31 insertions(+), 1 deletions(-)
arch/powerpc/kvm/Kconfig +17 -0
index c299268..a9339dd 100644
@@ -21,6 +21,23 @@ config KVM
 	select PREEMPT_NOTIFIERS
 	select ANON_INODES
 
+config KVM_970_HANDLER
+	bool
+
+config KVM_970
+	tristate "KVM support for PowerPC 970 processors"
+	depends on EXPERIMENTAL && PPC64
+	select KVM
+	select KVM_970_HANDLER
+	---help---
+	  Support running unmodified 970 and 750 guest kernels in virtual
+	  machines on 970 host processors.
+
+	  This module provides access to the hardware capabilities through
+	  a character device node named /dev/kvm.
+
+	  If unsure, say N.
+
 config KVM_440
 	bool "KVM support for PowerPC 440 processors"
 	depends on EXPERIMENTAL && 44x
arch/powerpc/kvm/Makefile +14 -1
index 37655fe..dcb09be 100644
@@ -14,11 +14,12 @@ CFLAGS_emulate.o  := -I.
 
 kvm-objs := $(common-objs-y) powerpc.o emulate.o
 obj-$(CONFIG_KVM_EXIT_TIMING) += timing.o
-obj-$(CONFIG_KVM) += kvm.o
+obj-$(CONFIG_KVM_970_HANDLER) += 970_exports.o
 
 AFLAGS_booke_interrupts.o := -I$(obj)
 
 kvm-440-objs := \
+	$(kvm-objs) \
 	booke.o \
 	booke_emulate.o \
 	booke_interrupts.o \
@@ -28,6 +29,7 @@ kvm-440-objs := \
 obj-$(CONFIG_KVM_440) += kvm-440.o
 
 kvm-e500-objs := \
+	$(kvm-objs) \
 	booke.o \
 	booke_emulate.o \
 	booke_interrupts.o \
@@ -35,3 +37,14 @@ kvm-e500-objs := \
 	e500_tlb.o \
 	e500_emulate.o
 obj-$(CONFIG_KVM_E500) += kvm-e500.o
+
+kvm-970-objs := \
+	$(kvm-objs) \
+	970.o \
+	970_emulate.o \
+	970_interrupts.o \
+	970_mmu_host.o \
+	970_mmu.o \
+	74xx_mmu.o
+obj-$(CONFIG_KVM_970) += kvm-970.o
+
Signature · 1 line
1.6.0.2