]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: ppc: enable KVM_TRACE building for powerpc
authorJerone Young <jyoung5@us.ibm.com>
Mon, 14 Jul 2008 12:00:02 +0000 (14:00 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:15 +0000 (10:15 +0200)
This patch enables KVM_TRACE to build for PowerPC arch. This means just
adding sections to Kconfig and Makefile.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/powerpc/kvm/Kconfig
arch/powerpc/kvm/Makefile

index 6b076010213ba28248a9c81813ca0920bef43e08..53aaa66b25e5ada55b425004e7a004295747857b 100644 (file)
@@ -37,6 +37,17 @@ config KVM_BOOKE_HOST
          Provides host support for KVM on Book E PowerPC processors. Currently
          this works on 440 processors only.
 
+config KVM_TRACE
+       bool "KVM trace support"
+       depends on KVM && MARKERS && SYSFS
+       select RELAY
+       select DEBUG_FS
+       default n
+       ---help---
+         This option allows reading a trace of kvm-related events through
+         relayfs.  Note the ABI is not considered stable and will be
+         modified in future updates.
+
 source drivers/virtio/Kconfig
 
 endif # VIRTUALIZATION
index 04e3449e1f427f0ee644443a6a66c233afef58fc..2a5d4397ac4b06f7545a5fc764b9da98b0ba580a 100644 (file)
@@ -4,9 +4,11 @@
 
 EXTRA_CFLAGS += -Ivirt/kvm -Iarch/powerpc/kvm
 
-common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
+common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
 
-kvm-objs := $(common-objs) powerpc.o emulate.o booke_guest.o
+common-objs-$(CONFIG_KVM_TRACE)  += $(addprefix ../../../virt/kvm/, kvm_trace.o)
+
+kvm-objs := $(common-objs-y) powerpc.o emulate.o booke_guest.o
 obj-$(CONFIG_KVM) += kvm.o
 
 AFLAGS_booke_interrupts.o := -I$(obj)