On 05/18/2011 09:47 AM, Avi Kivity wrote: > Yes. We'd change pci_register_bar() to accept a MemoryRegion.
Surely this detail would be hidden on the pci_dev->bus? >> However, we are yet in troubles if we want to change that because >> devices can only be on one bus - at least so far. > > Nothing prohibits a device from calling pci_register_bar() for one region and > some other API for another. Sure, but the majority of PCI devices are plain pci, and that sort of complexity should be hidden by default. r~