v4 changes:

Introduced PCIReqIDCache struct. Since PCI bus number may be
changing during time, we need to cache the device that we can fetch
requester_id from. Meanwhile, we need to cache how we should extract
reqid from the cache. Currently there are two kinds:

- BDF: directly fetch BDF from the cached device
- SECONDARY_BUS: this is only used when device are under pcie-to-pci
  bridges.

Thanks,

Peter Xu (1):
  pci: fix pci_requester_id()

 hw/i386/kvm/pci-assign.c |  2 +-
 hw/pci/pci.c             | 76 ++++++++++++++++++++++++++++++++++++++++++++++++
 include/hw/pci/pci.h     | 26 +++++++++++++++--
 3 files changed, 101 insertions(+), 3 deletions(-)

-- 
2.4.11


Reply via email to