mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Merge remote-tracking branch 'mst/tags/for_anthony' into staging
* mst/tags/for_anthony: pci_bridge_dev: fix error path in pci_bridge_dev_initfn() qdev: release parent properties on dc->init failure msi: Use msi/msix_present more consistently msi: Invoke msi/msix_write_config from PCI core msi: Guard msi/msix_write_config with msi_present msi: Invoke msi/msix_reset from PCI core msi: Guard msi_reset with msi_present ahci: Clean up reset functions intel-hda: Fix reset of MSI function ahci: Fix reset of MSI function rtl8139: honor RxOverflow flag in can_receive method shpc: unparent device before free
This commit is contained in:
commit
df6606f455
17 changed files with 61 additions and 66 deletions
8
hw/pci.c
8
hw/pci.c
|
@ -31,6 +31,8 @@
|
|||
#include "loader.h"
|
||||
#include "range.h"
|
||||
#include "qmp-commands.h"
|
||||
#include "msi.h"
|
||||
#include "msix.h"
|
||||
|
||||
//#define DEBUG_PCI
|
||||
#ifdef DEBUG_PCI
|
||||
|
@ -188,6 +190,9 @@ void pci_device_reset(PCIDevice *dev)
|
|||
}
|
||||
}
|
||||
pci_update_mappings(dev);
|
||||
|
||||
msi_reset(dev);
|
||||
msix_reset(dev);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1037,6 +1042,9 @@ void pci_default_write_config(PCIDevice *d, uint32_t addr, uint32_t val, int l)
|
|||
|
||||
if (range_covers_byte(addr, l, PCI_COMMAND))
|
||||
pci_update_irq_disabled(d, was_irq_disabled);
|
||||
|
||||
msi_write_config(d, addr, val, l);
|
||||
msix_write_config(d, addr, val, l);
|
||||
}
|
||||
|
||||
/***********************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue