[PATCH 14/40] KVM: Use CONFIG_PREEMPT_NOTIFIERS around struct preempt_notifier
- From: Avi Kivity <avi@xxxxxxxxxxxx>
- Date: Mon, 31 Mar 2008 17:36:58 +0300
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
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@xxxxxxxxxx>
Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>
---
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 928b0d5..b90ca36 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;
--
1.5.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 00/40] KVM updates for the 2.6.26 merge window (part I)
- From: Avi Kivity
- [PATCH 00/40] KVM updates for the 2.6.26 merge window (part I)
- Prev by Date: [PATCH 11/40] KVM: MMU: Decouple mmio from shadow page tables
- Next by Date: [PATCH 15/40] KVM: Disable pagefaults during copy_from_user_inatomic()
- Previous by thread: [PATCH 11/40] KVM: MMU: Decouple mmio from shadow page tables
- Next by thread: [PATCH 15/40] KVM: Disable pagefaults during copy_from_user_inatomic()
- Index(es):
Relevant Pages
- [RFC PATCH 23/30 v3] Add latency_trace format tor tracer
... struct mctracer_entry *entry; ... struct mctracer_entry *ent; ...
(Linux-Kernel) - [RFC PATCH 20/22 -v2] Add latency_trace format tor tracer
... static struct mctracer_trace mctracer_trace; ... struct mctracer_entry
*ent; ... (Linux-Kernel) - Re: [PATCH 2/3] i386: use x86_64s desc_def.h
... Changed the type of the tls_array in struct thread_struct: ... int cpu,
idx; ... static inline void load_TLS(struct thread_struct *t, unsigned int cpu) ...
(Linux-Kernel) - [RFC PATCH(Experimental) 2/4] Revert changes to workqueue.c
... struct workqueue_struct *wq; ... void destroy_workqueue ... "Freedom
comes with a price tag of responsibility, which is still a bargain, ... (Linux-Kernel) - [PATCH 4/6] KVM: AMD SVM: Add data structures
... struct kvm_vcpu { ... struct kvm *kvm; ... (Linux-Kernel)