mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 00:05:22 +00:00
Merge remote branch 'mst/for_anthony' into staging
This commit is contained in:
commit
2685d2961b
4
hw/pci.c
4
hw/pci.c
@ -641,7 +641,6 @@ static void pci_init_wmask_bridge(PCIDevice *d)
|
|||||||
PCI_BRIDGE_CTL_FAST_BACK |
|
PCI_BRIDGE_CTL_FAST_BACK |
|
||||||
PCI_BRIDGE_CTL_DISCARD |
|
PCI_BRIDGE_CTL_DISCARD |
|
||||||
PCI_BRIDGE_CTL_SEC_DISCARD |
|
PCI_BRIDGE_CTL_SEC_DISCARD |
|
||||||
PCI_BRIDGE_CTL_DISCARD_STATUS |
|
|
||||||
PCI_BRIDGE_CTL_DISCARD_SERR);
|
PCI_BRIDGE_CTL_DISCARD_SERR);
|
||||||
/* Below does not do anything as we never set this bit, put here for
|
/* Below does not do anything as we never set this bit, put here for
|
||||||
* completeness. */
|
* completeness. */
|
||||||
@ -833,6 +832,7 @@ static int pci_unregister_device(DeviceState *dev)
|
|||||||
|
|
||||||
pci_unregister_io_regions(pci_dev);
|
pci_unregister_io_regions(pci_dev);
|
||||||
pci_del_option_rom(pci_dev);
|
pci_del_option_rom(pci_dev);
|
||||||
|
qemu_free(pci_dev->romfile);
|
||||||
do_pci_unregister_device(pci_dev);
|
do_pci_unregister_device(pci_dev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -2072,7 +2072,7 @@ static char *pcibus_get_dev_path(DeviceState *dev)
|
|||||||
for (t = d; t; t = t->bus->parent_dev) {
|
for (t = d; t; t = t->bus->parent_dev) {
|
||||||
p -= slot_len;
|
p -= slot_len;
|
||||||
s = snprintf(slot, sizeof slot, ":%02x.%x",
|
s = snprintf(slot, sizeof slot, ":%02x.%x",
|
||||||
PCI_SLOT(t->devfn), PCI_FUNC(d->devfn));
|
PCI_SLOT(t->devfn), PCI_FUNC(t->devfn));
|
||||||
assert(s == slot_len);
|
assert(s == slot_len);
|
||||||
memcpy(p, slot, slot_len);
|
memcpy(p, slot, slot_len);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user