aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-07-26 15:35:16 +0100
committerAvi Kivity <avi@redhat.com>2012-08-09 16:16:57 +0300
commitf3e1bed8daa35726d2731dd2a010fb91a5bb3792 (patch)
tree320076dc4d40b033e32b6cca95d810bc36d4e98a /kvm-all.c
parent614e41bc26dda751321da47acb1f9cb287b52085 (diff)
downloadqemu-f3e1bed8daa35726d2731dd2a010fb91a5bb3792.zip
qemu-f3e1bed8daa35726d2731dd2a010fb91a5bb3792.tar.gz
qemu-f3e1bed8daa35726d2731dd2a010fb91a5bb3792.tar.bz2
kvm: Decouple 'GSI routing' from 'kernel irqchip'
Don't assume having an in-kernel irqchip means that GSI routing is enabled. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvm-all.c b/kvm-all.c
index b9a613e..34b02c1 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -103,6 +103,7 @@ bool kvm_kernel_irqchip;
bool kvm_async_interrupts_allowed;
bool kvm_irqfds_allowed;
bool kvm_msi_via_irqfd_allowed;
+bool kvm_gsi_routing_allowed;
static const KVMCapabilityInfo kvm_required_capabilites[] = {
KVM_CAP_INFO(USER_MEMORY),
@@ -1099,7 +1100,7 @@ int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg)
struct kvm_irq_routing_entry kroute;
int virq;
- if (!kvm_irqchip_in_kernel()) {
+ if (!kvm_gsi_routing_enabled()) {
return -ENOSYS;
}