qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 0/4] Block DMA helpers (v2)


From: Anthony Liguori
Subject: [Qemu-devel] Re: [PATCH 0/4] Block DMA helpers (v2)
Date: Sun, 08 Feb 2009 13:04:40 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Avi Kivity wrote:
We could replace

   struct iovec in_sg[VIRTQUEUE_MAX_SIZE];
   struct iovec out_sg[VIRTQUEUE_MAX_SIZE];

by QEMUSGList, which would be a minor improvement, but I thought things were very different for some reason.

I'm not sure that it's just a minor improvement. To maintain this interface, we have to map the full request. If we exposed QEMUSGLists, then each device could choose the mapping policy. Since there's no good reason to use virtio to DMA MMIO memory, I'm unsure which is the best approach.

An example would be how the code is structured now (as opposed to how I thought it was structured).

Okay, I was certain I was missing something obvious :-)

Regards,

Anthony Liguori





reply via email to

[Prev in Thread] Current Thread [Next in Thread]