mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
pcie: add flr support
Support flr: trigger device reset on flr config write. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
362dd48c16
commit
0ead87c8de
6 changed files with 12 additions and 13 deletions
6
hw/pci.c
6
hw/pci.c
|
@ -137,7 +137,11 @@ static void pci_update_irq_status(PCIDevice *dev)
|
|||
}
|
||||
}
|
||||
|
||||
static void pci_device_reset(PCIDevice *dev)
|
||||
/*
|
||||
* This function is called on #RST and FLR.
|
||||
* FLR if PCI_EXP_DEVCTL_BCR_FLR is set
|
||||
*/
|
||||
void pci_device_reset(PCIDevice *dev)
|
||||
{
|
||||
int r;
|
||||
/* TODO: call the below unconditionally once all pci devices
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue