summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2008-01-29 00:42:34 +0100
committerAvi Kivity <avi@qumranet.com>2008-04-27 10:53:18 +0200
commit31bb117eb48f2629e030ca547ca89a1c34150183 (patch)
tree9923c209e353dfac4843ae067eaade9f3154ced3 /include
parentKVM: VMX: Enable Virtual Processor Identification (VPID) (diff)
downloadlinux-31bb117eb48f2629e030ca547ca89a1c34150183.tar.xz
linux-31bb117eb48f2629e030ca547ca89a1c34150183.zip
KVM: Use CONFIG_PREEMPT_NOTIFIERS around struct preempt_notifier
This allows kvm_host.h to be #included even when struct preempt_notifier is undefined. This is needed to build ppc asm-offsets.h. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 928b0d59e9ba..b90ca368dcf6 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -67,7 +67,9 @@ void kvm_io_bus_register_dev(struct kvm_io_bus *bus,
struct kvm_vcpu {
struct kvm *kvm;
+#ifdef CONFIG_PREEMPT_NOTIFIERS
struct preempt_notifier preempt_notifier;
+#endif
int vcpu_id;
struct mutex mutex;
int cpu;