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:
Isaku Yamahata 2010-12-22 15:14:35 +09:00 committed by Michael S. Tsirkin
parent 362dd48c16
commit 0ead87c8de
6 changed files with 12 additions and 13 deletions

View file

@ -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