mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qemu/pci: make pci not depend on msix
Making pci device cleanup msix automatically makes pci.c depend on msix.c, which is IMO messy. Since devices do msix_init it's easy and natural for them to also do msix_uninit. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
05fcfada5e
commit
0f457d91c4
2 changed files with 9 additions and 3 deletions
2
hw/pci.c
2
hw/pci.c
|
@ -26,7 +26,6 @@
|
|||
#include "monitor.h"
|
||||
#include "net.h"
|
||||
#include "sysemu.h"
|
||||
#include "msix.h"
|
||||
|
||||
//#define DEBUG_PCI
|
||||
#ifdef DEBUG_PCI
|
||||
|
@ -442,7 +441,6 @@ static int pci_unregister_device(DeviceState *dev)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
msix_uninit(pci_dev);
|
||||
pci_unregister_io_regions(pci_dev);
|
||||
|
||||
qemu_free_irqs(pci_dev->irq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue