[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RfC PATCH 03/15] virtio-pci: make pci bars configurabl
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [RfC PATCH 03/15] virtio-pci: make pci bars configurable |
Date: |
Mon, 02 Mar 2015 14:10:46 +0100 |
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 <address@hidden>
>
> 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