From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Cédric Le Goater" <clg@fr.ibm.com>
Cc: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, agraf@suse.de,
paulus@samba.org, gkurz@linux.vnet.ibm.com.patch, aik@ozlabs.ru
Subject: Re: [RFC PATCH 0/4] vhost_net: support for cross endian guests
Date: Mon, 3 Nov 2014 18:23:49 +0200 [thread overview]
Message-ID: <20141103162349.GB24877@redhat.com> (raw)
In-Reply-To: <1414571925-16918-1-git-send-email-clg@fr.ibm.com>
On Wed, Oct 29, 2014 at 09:38:41AM +0100, Cédric Le Goater wrote:
> This patchset adds a VHOST_VRING_F_BYTESWAP flag to inform the host
> to byteswap data of the vring when the guest and the host have a
> different endian order. The flag is stored at initialization in an
> attribute of the virtio queues. It is then used to byteswap, or not,
> the vring indexes and descriptors shared with the guest OS.
>
> The last patch adds the byteswapping of the virtio_net header as it
> is done in qemu.
Hi Cedric,
Thanks for submitting this.
One general problem with this approach, is that
it adds overhead e.g. for x86 on x86 unconditionally.
I will in a couple of days post a patch adding virtio 1.0
support for vhost.
This will serve as a better basis for cross-endian support in
vhost, on top.
I'll try to remember to Cc you.
> The patches apply on linux-3.18-rc2 and the tests were done on PowerPC
> using the following hosts :
>
> fedora21/ppc64, utopic/ppc64le
>
> with various guests :
>
> trusty/ppc64le, utopic/ppc64le, debian/ppc64le,
> rhel6.5/ppc64, fedora21/ppc64, debian/ppc64
>
> Regressions tests for x86_64 were done a debian host using rhel6.6,
> fedora20 and debian guests.
>
>
> Cédric Le Goater (4):
> vhost: add VHOST_VRING_F_BYTESWAP flag
> vhost: add byteswap routines
> vhost: byteswap virtqueue attributes
> vhost_net: byteswap virtio_net header
>
> drivers/vhost/net.c | 39 +++++++++---
> drivers/vhost/vhost.c | 150 ++++++++++++++++++++++++++++++++++++++++----
> drivers/vhost/vhost.h | 1 +
> include/uapi/linux/vhost.h | 3 +
> 4 files changed, 171 insertions(+), 22 deletions(-)
>
> --
> 1.7.10.4
next prev parent reply other threads:[~2014-11-03 16:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 8:38 [RFC PATCH 0/4] vhost_net: support for cross endian guests Cédric Le Goater
2014-10-29 8:38 ` [RFC PATCH 1/4] vhost: add VHOST_VRING_F_BYTESWAP flag Cédric Le Goater
2014-11-03 16:28 ` Michael S. Tsirkin
2014-10-29 8:38 ` [RFC PATCH 2/4] vhost: add byteswap routines Cédric Le Goater
2014-11-03 15:38 ` Cornelia Huck
2014-10-29 8:38 ` [RFC PATCH 3/4] vhost: byteswap virtqueue attributes Cédric Le Goater
2014-11-03 16:02 ` Cornelia Huck
2014-10-29 8:38 ` [RFC PATCH 4/4] vhost_net: byteswap virtio_net header Cédric Le Goater
2014-11-03 16:25 ` Michael S. Tsirkin
2014-11-03 16:23 ` Michael S. Tsirkin [this message]
2014-11-04 8:07 ` [RFC PATCH 0/4] vhost_net: support for cross endian guests Cedric Le Goater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141103162349.GB24877@redhat.com \
--to=mst@redhat.com \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=clg@fr.ibm.com \
--cc=gkurz@linux.vnet.ibm.com.patch \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox