Received: from eggs.gnu.org ([2001:4830:134:3::10]:54256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjOr2-0003kF-Bn for qemu-devel@nongnu.org; Wed, 29 Oct 2014 04:43:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjOqo-0006NU-Nj for qemu-devel@nongnu.org; Wed, 29 Oct 2014 04:43:44 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:43111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjOqo-0006N5-Dw for qemu-devel@nongnu.org; Wed, 29 Oct 2014 04:43:30 -0400 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 Oct 2014 08:43:29 -0000 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Wed, 29 Oct 2014 09:42:10 +0100 Message-Id: <1414572130-17014-3-git-send-email-clg@fr.ibm.com> In-Reply-To: <1414572130-17014-1-git-send-email-clg@fr.ibm.com> References: <1414572130-17014-1-git-send-email-clg@fr.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RFC PATCH 2/2] vhost_net: re-enable when cross endian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mst@redhat.com Cc: aik@ozlabs.ru, qemu-devel@nongnu.org, agraf@suse.de, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , paulus@samba.org, qemu-ppc@nongnu.org revert 371df9f5e0f1 "vhost-net: disable when cross-endian" Signed-off-by: Cédric Le Goater --- hw/net/vhost_net.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index 4e3a06162291..721fb2da52f8 100644 --- a/hw/net/vhost_net.c +++ b/hw/net/vhost_net.c @@ -271,19 +271,6 @@ static void vhost_net_stop_one(struct vhost_net *net, vhost_dev_disable_notifiers(&net->dev, dev); } -static bool vhost_net_device_endian_ok(VirtIODevice *vdev) -{ -#ifdef TARGET_IS_BIENDIAN -#ifdef HOST_WORDS_BIGENDIAN - return virtio_is_big_endian(vdev); -#else - return !virtio_is_big_endian(vdev); -#endif -#else - return true; -#endif -} - int vhost_net_start(VirtIODevice *dev, NetClientState *ncs, int total_queues) { @@ -292,12 +279,6 @@ int vhost_net_start(VirtIODevice *dev, NetClientState *ncs, VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus); int r, e, i; - if (!vhost_net_device_endian_ok(dev)) { - error_report("vhost-net does not support cross-endian"); - r = -ENOSYS; - goto err; - } - if (!k->set_guest_notifiers) { error_report("binding does not support guest notifiers"); r = -ENOSYS; -- 1.7.10.4