Received: from eggs.gnu.org ([2001:4830:134:3::10]:53680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDGCP-0003pr-5M for qemu-devel@nongnu.org; Mon, 19 Jan 2015 12:33:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDGCL-0006s7-4R for qemu-devel@nongnu.org; Mon, 19 Jan 2015 12:33:13 -0500 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:42399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDGCK-0006r9-Qu for qemu-devel@nongnu.org; Mon, 19 Jan 2015 12:33:09 -0500 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Jan 2015 17:33:06 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 86B1F17D8056 for ; Mon, 19 Jan 2015 17:33:06 +0000 (GMT) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t0JHX4i246072006 for ; Mon, 19 Jan 2015 17:33:04 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t0JHX4AX021304 for ; Mon, 19 Jan 2015 10:33:04 -0700 Date: Mon, 19 Jan 2015 18:33:03 +0100 From: Cornelia Huck Message-ID: <20150119183303.1aea3975.cornelia.huck@de.ibm.com> In-Reply-To: <1421687077-9025-1-git-send-email-stefanha@redhat.com> References: <1421687077-9025-1-git-send-email-stefanha@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/2] dataplane: use endian-aware memory accessors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, David Gibson On Mon, 19 Jan 2015 17:04:35 +0000 Stefan Hajnoczi wrote: > In commit 0f5d1d2a49778863db54b4b1ac2dc008a8f21f11 ("virtio: memory accessors > for endian-ambivalent targets") endian-aware memory accessors were added to > support bi-endian targets like recent ppc64 systems. > > The dataplane vring.c code does not use these accessors and is therefore unable > to emulate virtio devices when the endianness differs between the device and > host. > > These patches modify vring.c to use the endian-aware accessors. I had modified the accesses in vring.c to consider endianness for virtio-1 support as well. I wonder whether we can find some common ground there? It's been a while since I have had time to work on this, but searching for "dataplane: allow virtio-1 devices" should lead you to the relevant patch.