[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 07/10] vhost_net: re-enable when cross endian
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PULL 07/10] vhost_net: re-enable when cross endian |
Date: |
Wed, 17 Jun 2015 21:38:21 +0200 |
From: Cédric Le Goater <address@hidden>
Cross-endianness is now checked by the core vhost code.
revert 371df9f5e0f1 "vhost-net: disable when cross-endian"
Signed-off-by: Cédric Le Goater <address@hidden>
[ added commit message, Greg Kurz <address@hidden> ]
Signed-off-by: Greg Kurz <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
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 8cbb2f6..f505c91 100644
--- a/hw/net/vhost_net.c
+++ b/hw/net/vhost_net.c
@@ -303,19 +303,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)
{
@@ -324,12 +311,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;
--
MST
- [Qemu-devel] [PULL 00/10] virtio, pci fixes, enhancements, Michael S. Tsirkin, 2015/06/17
- [Qemu-devel] [PULL 01/10] vhost-user: part of virtio, Michael S. Tsirkin, 2015/06/17
- [Qemu-devel] [PULL 02/10] linux-headers: sync vhost.h, Michael S. Tsirkin, 2015/06/17
- [Qemu-devel] [PULL 03/10] virtio: introduce virtio_legacy_is_cross_endian(), Michael S. Tsirkin, 2015/06/17
- [Qemu-devel] [PULL 04/10] vhost: set vring endianness for legacy virtio, Michael S. Tsirkin, 2015/06/17
- [Qemu-devel] [PULL 05/10] tap: add VNET_LE/VNET_BE operations, Michael S. Tsirkin, 2015/06/17
- [Qemu-devel] [PULL 07/10] vhost_net: re-enable when cross endian,
Michael S. Tsirkin <=
- [Qemu-devel] [PULL 08/10] hw/core: rebase sysbus_get_fw_dev_path() to g_strdup_printf(), Michael S. Tsirkin, 2015/06/17
- [Qemu-devel] [PULL 06/10] vhost-net: tell tap backend about the vnet endianness, Michael S. Tsirkin, 2015/06/17
- [Qemu-devel] [PULL 09/10] pci: Don't register a specialized 'config_write' if default behavior is intended, Michael S. Tsirkin, 2015/06/17
- [Qemu-devel] [PULL 10/10] vhost: enable vhost without without MSI-X, Michael S. Tsirkin, 2015/06/17
- Re: [Qemu-devel] [PULL 00/10] virtio, pci fixes, enhancements, Peter Maydell, 2015/06/18
- Re: [Qemu-devel] [PULL 00/10] virtio, pci fixes, enhancements, Michael S. Tsirkin, 2015/06/18
- Re: [Qemu-devel] [PULL 00/10] virtio, pci fixes, enhancements, Peter Maydell, 2015/06/18
- Re: [Qemu-devel] [PULL 00/10] virtio, pci fixes, enhancements, Michael S. Tsirkin, 2015/06/19
- Re: [Qemu-devel] [PULL 00/10] virtio, pci fixes, enhancements, Peter Maydell, 2015/06/19
- Re: [Qemu-devel] [PULL 00/10] virtio, pci fixes, enhancements, Michael S. Tsirkin, 2015/06/19