public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/0][RFC] KVM use of vringfd
@ 2008-06-13 13:57 Mark McLoughlin
  2008-06-13 13:57 ` [PATCH 1/5] vring: Replace mmap() interface with ioctl() Mark McLoughlin
  0 siblings, 1 reply; 23+ messages in thread
From: Mark McLoughlin @ 2008-06-13 13:57 UTC (permalink / raw)
  To: Anthony Liguori, Avi Kivity, Rusty Russell; +Cc: kvm

Hey,
        Since this came up at the KVM forum, I thought I'd post these
patches here for discussion.

        The first issue with making KVM use vringfd is that the mmap()
interface doesn't work for KVM since it is the guest that allocates
the ring descriptor, so it doesn't make much sense for the host to
remap those pages.

        The second issue is a little more tricky; QEMU's networking
implementation is based around the notion of connecting a number
of interfaces to a VLAN. So, in less common cases where you don't
just have a tap interface and a virtio interface connected to the
VLAN, you can't take just lguest's simple approach of sharing the
same vrings between the tap driver in the host and the virtio driver
in the guest and having the host userspace notify each side of buffers
as they come and go. I know Anthony has ideas here, so I'll just let
him outline them.

Cheers,
Mark.



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2008-06-18 14:06 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-13 13:57 [PATCH 0/0][RFC] KVM use of vringfd Mark McLoughlin
2008-06-13 13:57 ` [PATCH 1/5] vring: Replace mmap() interface with ioctl() Mark McLoughlin
2008-06-13 13:57   ` [PATCH 2/5] lguest: Use VRINGSETINFO ioctl() instead of mmap() Mark McLoughlin
2008-06-13 13:57     ` [PATCH 3/5] kvm: qemu: Publish last_avail index in the ring Mark McLoughlin
2008-06-13 13:58       ` [PATCH 4/5] kvm: qemu: Use vringfd to eliminate copies Mark McLoughlin
2008-06-13 13:58         ` [PATCH 5/5] kvm: qemu: Add support for partial csums and GSO Mark McLoughlin
2008-06-14 23:28         ` [PATCH 4/5] kvm: qemu: Use vringfd to eliminate copies Anthony Liguori
2008-06-16  2:10           ` Rusty Russell
2008-06-16 14:02             ` Anthony Liguori
2008-06-16 14:58               ` Avi Kivity
2008-06-18  5:43               ` Rusty Russell
2008-06-18 14:01             ` Avi Kivity
2008-06-17 14:08           ` Mark McLoughlin
2008-06-17 14:54             ` Anthony Liguori
2008-06-17 15:45               ` Mark McLoughlin
2008-06-13 14:09   ` [PATCH 1/5] vring: Replace mmap() interface with ioctl() Avi Kivity
2008-06-17 12:19     ` Mark McLoughlin
2008-06-18 14:05       ` Avi Kivity
2008-06-14  9:02   ` Rusty Russell
2008-06-14 14:20     ` Avi Kivity
2008-06-14 23:23       ` Anthony Liguori
2008-06-15 15:24         ` Avi Kivity
2008-06-15 19:13           ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox