kvm: remove hard dependency on pci
commit88c725c78e87eecb061f882177c7a6a2ac1059ad
authorCornelia Huck <cohuck@redhat.com>
Fri, 7 Jul 2017 09:45:26 +0000 (7 11:45 +0200)
committerCornelia Huck <cohuck@redhat.com>
Wed, 30 Aug 2017 16:23:25 +0000 (30 18:23 +0200)
treee5076aa2e2219460f4a6ca9b0a4cda8f345fe32e
parent5f8c92e1d50d3629116497dd0a446e8cb28af7f8
kvm: remove hard dependency on pci

The msi routing code in kvm calls some pci functions: provide
some stubs to enable builds without pci.

Also, to make this more obvious, guard them via a pci_available boolean
(which also can be reused in other places).

Fixes: e1d4fb2de ("kvm-irqchip: x86: add msi route notify fn")
Fixes: 767a554a0 ("kvm-all: Pass requester ID to MSI routing functions")
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
accel/kvm/kvm-all.c
hw/pci/pci-stub.c
hw/pci/pci.c
include/hw/pci/pci.h