Hi, > > Use case: For VirtIOPCIProxy subclasses which need additional pci bars, > > such as virtio-vga. With the new fields they can make sure the regions > > do not conflict. > > > > Signed-off-by: Gerd Hoffmann <kra...@redhat.com> > > Hmm, I'd rather add an API to register a free BAR. > What's wrong with that?
I want a fixed bar (for the legacy vga framebuffer), because that makes things easier for vgabios etc. Currently virtio-vga uses bar #2, and I'd much prefer to not change that as support for this is in seabios already. I don't mind much how that is actually implemented though. Reserving bar #2 somehow, then have virtio_pci_device_plugged check this and place the bars automatically in a non-conflicting way is fine with me too. cheers, Gerd