1. 16 2月, 2016 1 次提交
    • G
      virtio-net: use the backend cross-endian capabilities · 1bfa316c
      Greg Kurz 提交于
      When running a fully emulated device in cross-endian conditions, including
      a virtio 1.0 device offered to a big endian guest, we need to fix the vnet
      headers. This is currently handled by the virtio_net_hdr_swap() function
      in the core virtio-net code but it should actually be handled by the net
      backend.
      
      With this patch, virtio-net now tries to configure the backend to do the
      endian fixing when the device starts (i.e. drivers sets the CONFIG_OK bit).
      If the backend cannot support the requested endiannes, we have to fallback
      onto virtio_net_hdr_swap(): this is recorded in the needs_vnet_hdr_swap flag,
      to be used in the TX and RX paths.
      
      Note that we reset the backend to the default behaviour (guest native
      endianness) when the device stops (i.e. device status had CONFIG_OK bit and
      driver unsets it). This is needed, with the linux tap backend at least,
      otherwise the guest may lose network connectivity if rebooted into a
      different endianness.
      
      The current vhost-net code also tries to configure net backends. This will
      be no more needed and will be reverted in a subsequent patch.
      Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Reviewed-by: NLaurent Vivier <lvivier@redhat.com>
      Signed-off-by: NGreg Kurz <gkurz@linux.vnet.ibm.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NLaurent Vivier <lvivier@redhat.com>
      1bfa316c
  2. 13 2月, 2016 1 次提交
    • P
      Merge remote-tracking branch 'remotes/sstabellini/tags/xen-2016-02-12' into staging · a5af1287
      Peter Maydell 提交于
      Xen 2016-02-12
      
      # gpg: Signature made Fri 12 Feb 2016 17:28:09 GMT using RSA key ID 70E1AE90
      # gpg: Good signature from "Stefano Stabellini <stefano.stabellini@eu.citrix.com>"
      
      * remotes/sstabellini/tags/xen-2016-02-12:
        xen: Drop __XEN_LATEST_INTERFACE_VERSION__ checks from prior to Xen 4.2
        xen: move xenforeignmemory compat layer into common place
        xen: drop XenXC and associated interface wrappers
        xen: drop xen_xc_hvm_inject_msi wrapper
        xen: drop support for Xen 4.1 and older.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a5af1287
  3. 11 2月, 2016 38 次提交