summaryrefslogtreecommitdiffstats
path: root/include/linux/kvm.h
diff options
context:
space:
mode:
authorJerone Young <jyoung5@us.ibm.com>2007-11-26 08:33:53 -0600
committerAvi Kivity <avi@qumranet.com>2008-01-30 17:53:15 +0200
commit51e296258cba41759ff0de5da110d8d52675ee67 (patch)
tree97675b88559d9bab5674fb2c497be17e0b7d5be9 /include/linux/kvm.h
parentd7e5117a2568f7407e98ca85155511ecfe4f0631 (diff)
KVM: Add ifdef in irqchip struct for x86 only structures
This patch fixes a small issue where sturctures: kvm_pic_state kvm_ioapic_state are defined inside x86 specific code and may or may not be defined in anyway for other architectures. The problem caused is one cannot compile userspace apps (ex. libkvm) for other archs since a size cannot be determined for these structures. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r--include/linux/kvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index b751552f2e3..f0bebd61ff7 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -51,8 +51,10 @@ struct kvm_irqchip {
__u32 pad;
union {
char dummy[512]; /* reserving space */
+#ifdef CONFIG_X86
struct kvm_pic_state pic;
struct kvm_ioapic_state ioapic;
+#endif
} chip;
};