On 02/23/2010 03:05 PM, Anthony Liguori wrote:
Hi Cam,
On 02/23/2010 02:52 PM, Cam Macdonell wrote:
Support for passing memory regions via VirtIO to remove need for PCI
support in the guest.
Adds new vectors to VirtIO config space to pass memory regions similar
to how virtqueues are passed.
Kernel patch is forthcoming that add device_ops to access the memory
regions.
I have used this mechanism to implement my host shared memory
implementation
and modified Alex's Virtio FB to use it as well.
Virtio is really a DMA engine. One of the nice things about it's
design is that you can do things like transparent bounce buffering if
needed. Adding a mechanism like this breaks this abstract and turns
virtio into something that's more than I think it should be.
More specifically, virtio does not assume cache coherent shared memory
today. While we assume this in the virtio-pci vring implementation,
that's just an implementation detail of one transport. Adding generic
shared memory to virtio presumes that one can have cache coherent shared
memory in any virtio transport which is not a good assumption to make.
Regards,
Anthony Liguori