From: Wei Liu Subject: Re: OASIS Virtual I/O Device (VIRTIO) TC Date: Thu, 29 Aug 2013 13:56:03 +0100 Message-ID: <20130829125603.GR15729@zion.uk.xensource.com> References: <20130813184128.GA5397@debian70-amd64.local.net-space.pl> <20130815133728.GE7042@zion.uk.xensource.com> <20130815141641.GL3545@konrad-lan.dumpdata.com> <20130815142418.GF7042@zion.uk.xensource.com> <1376578726.9273.195.camel@hastur.hellion.org.uk> <20130815150904.GG7042@zion.uk.xensource.com> <20130827093741.GK3436@debian70-amd64.local.net-space.pl> <20130827110659.GB1625@zion.uk.xensource.com> <20130829112403.GQ3436@debian70-amd64.local.net-space.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20130829112403.GQ3436@debian70-amd64.local.net-space.pl> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel Kiper Cc: xen-devel@lists.xen.org, Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Thu, Aug 29, 2013 at 01:24:03PM +0200, Daniel Kiper wrote: > > > > To make the whole thing work we also need backend supporting Virtio. The > > closest thing at hand was QEMU, but again, the transport had to be > > re-implemented. > > > > The hack is on http://wiki.xen.org/wiki/Virtio_On_Xen > > Thanks for lengthy explanation. It looks that a lot of work has been done. > Could you tell or point where I could find info how buffers/rings are > shared between backend and frontend? Is grant page mechanism used at all? > How buffers/rings addresses are passed between backend and frontend? > Grant table was not used there. I used foreign mapping in QEMU. In that hack, MFN is passed on the ring. Looking at the original virtio_ring.c it should be trivial to replace physical addree with a grant ref, thus allowing proper use of grant table mechanism. Wei. > Daniel