]> Git Repo - qemu.git/commit - accel/kvm/kvm-all.c
kvm: Don't abort on kvm_irqchip_add_msi_route()
authorAlex Williamson <[email protected]>
Mon, 25 Jun 2012 15:40:39 +0000 (09:40 -0600)
committerMarcelo Tosatti <[email protected]>
Fri, 29 Jun 2012 23:02:27 +0000 (20:02 -0300)
commitdf410675e5fad55e056fb505cba3a62cac13c411
treeb65050696cdf5248e311fd1cd45881c0e6d87085
parent71ea2e016131a9fcde6f1ffd3e0e34a64c21f593
kvm: Don't abort on kvm_irqchip_add_msi_route()

Anyone using these functions has to be prepared that irqchip
support may not be present.  It shouldn't be up to the core
code to determine whether this is a fatal error.  Currently
code written as:

virq = kvm_irqchip_add_msi_route(...)
if (virq < 0) {
    <slow path>
} else {
    <fast path>
}

works on x86 with and without kvm irqchip enabled, works
without kvm support compiled in, but aborts() on !x86 with
kvm support.

Signed-off-by: Alex Williamson <[email protected]>
Acked-by: Jan Kiszka <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
kvm-all.c
This page took 0.026504 seconds and 4 git commands to generate.