aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2013-04-17 07:29:30 -0400
committerAlexander Graf <agraf@suse.de>2013-04-26 14:27:14 -0400
commita725d56a02ec3582bb5b9756f261fdc6962c79ee (patch)
tree12951caba7ac5239b18b3aeaba875d4d29833a85 /include/linux/kvm_host.h
parent8175e5b79c38a1d85225da516fa1a0ecbf2fdbca (diff)
KVM: Introduce CONFIG_HAVE_KVM_IRQ_ROUTING
Quite a bit of code in KVM has been conditionalized on availability of IOAPIC emulation. However, most of it is generically applicable to platforms that don't have an IOPIC, but a different type of irq chip. Make code that only relies on IRQ routing, not an APIC itself, on CONFIG_HAVE_KVM_IRQ_ROUTING, so that we can reuse it later. Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index bf3b1dcb8b3d..4215d4f3d86f 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -304,7 +304,7 @@ struct kvm_kernel_irq_routing_entry {
304 struct hlist_node link; 304 struct hlist_node link;
305}; 305};
306 306
307#ifdef __KVM_HAVE_IOAPIC 307#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
308 308
309struct kvm_irq_routing_table { 309struct kvm_irq_routing_table {
310 int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS]; 310 int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS];
@@ -432,7 +432,7 @@ void kvm_vcpu_uninit(struct kvm_vcpu *vcpu);
432int __must_check vcpu_load(struct kvm_vcpu *vcpu); 432int __must_check vcpu_load(struct kvm_vcpu *vcpu);
433void vcpu_put(struct kvm_vcpu *vcpu); 433void vcpu_put(struct kvm_vcpu *vcpu);
434 434
435#ifdef __KVM_HAVE_IOAPIC 435#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
436int kvm_irqfd_init(void); 436int kvm_irqfd_init(void);
437void kvm_irqfd_exit(void); 437void kvm_irqfd_exit(void);
438#else 438#else
@@ -957,7 +957,7 @@ static inline int mmu_notifier_retry(struct kvm *kvm, unsigned long mmu_seq)
957} 957}
958#endif 958#endif
959 959
960#ifdef KVM_CAP_IRQ_ROUTING 960#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
961 961
962#define KVM_MAX_IRQ_ROUTES 1024 962#define KVM_MAX_IRQ_ROUTES 1024
963 963