diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-01-29 00:42:34 +0100 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 10:53:18 +0200 |
commit | 31bb117eb48f2629e030ca547ca89a1c34150183 (patch) | |
tree | 9923c209e353dfac4843ae067eaade9f3154ced3 /include | |
parent | KVM: VMX: Enable Virtual Processor Identification (VPID) (diff) | |
download | linux-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.h | 2 |
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; |