kvm: Decouple 'MSI routing via irqfds' from 'kernel irqchip'

Decouple another x86-specific assumption about what irqchips imply.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
Peter Maydell 2012-07-26 15:35:15 +01:00 committed by Avi Kivity
parent cc7e0ddf5a
commit 614e41bc26
5 changed files with 18 additions and 3 deletions

View file

@ -2048,7 +2048,9 @@ void kvm_arch_init_irq_routing(KVMState *s)
no_hpet = 1;
}
/* We know at this point that we're using the in-kernel
* irqchip, so we can use irqfds.
* irqchip, so we can use irqfds, and on x86 we know
* we can use msi via irqfd.
*/
kvm_irqfds_allowed = true;
kvm_msi_via_irqfd_allowed = true;
}