Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx> --- hw/msi.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/msi.c b/hw/msi.c index bbc9cd7..5dbcccc 100644 --- a/hw/msi.c +++ b/hw/msi.c @@ -288,6 +288,9 @@ void msi_reset(PCIDevice *dev) uint16_t flags; bool msi64bit; + if (!msi_present(dev)) { + return; + } if (kvm_enabled() && kvm_irqchip_in_kernel()) { kvm_msi_free(dev); } -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html