qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 6a084e: vhost-user: part of virtio


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 6a084e: vhost-user: part of virtio
Date: Fri, 19 Jun 2015 04:30:07 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 6a084ea39aec84d352dbd3de0f523daaaaac8c7d
      
https://github.com/qemu/qemu/commit/6a084ea39aec84d352dbd3de0f523daaaaac8c7d
  Author: Michael S. Tsirkin <address@hidden>
  Date:   2015-06-15 (Mon, 15 Jun 2015)

  Changed paths:
    M MAINTAINERS

  Log Message:
  -----------
  vhost-user: part of virtio

vhost user is related to virtio, add it to the relevant entry.

Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 332f64073bddc9240cd572f64682a44572b67049
      
https://github.com/qemu/qemu/commit/332f64073bddc9240cd572f64682a44572b67049
  Author: Greg Kurz <address@hidden>
  Date:   2015-06-17 (Wed, 17 Jun 2015)

  Changed paths:
    M linux-headers/linux/vhost.h

  Log Message:
  -----------
  linux-headers: sync vhost.h

This patch brings the cross-endian vhost API to QEMU.

Signed-off-by: Greg Kurz <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 41d283bdab08868a244b9c19dce507fdf15a8990
      
https://github.com/qemu/qemu/commit/41d283bdab08868a244b9c19dce507fdf15a8990
  Author: Greg Kurz <address@hidden>
  Date:   2015-06-17 (Wed, 17 Jun 2015)

  Changed paths:
    M include/hw/virtio/virtio-access.h

  Log Message:
  -----------
  virtio: introduce virtio_legacy_is_cross_endian()

This helper will be used by vhost and tap to detect cross-endianness in
the legacy virtio case.

Signed-off-by: Greg Kurz <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 04b7a1523d65bb5c78832098cf3108a1aadcaf8a
      
https://github.com/qemu/qemu/commit/04b7a1523d65bb5c78832098cf3108a1aadcaf8a
  Author: Greg Kurz <address@hidden>
  Date:   2015-06-17 (Wed, 17 Jun 2015)

  Changed paths:
    M hw/virtio/vhost.c

  Log Message:
  -----------
  vhost: set vring endianness for legacy virtio

Legacy virtio is native endian: if the guest and host endianness differ,
we have to tell vhost so it can swap bytes where appropriate. This is
done through a vhost ring ioctl.

Signed-off-by: Greg Kurz <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: c80cd6bb9c20ef518c56319ce44d2971171e677d
      
https://github.com/qemu/qemu/commit/c80cd6bb9c20ef518c56319ce44d2971171e677d
  Author: Greg Kurz <address@hidden>
  Date:   2015-06-17 (Wed, 17 Jun 2015)

  Changed paths:
    M include/net/net.h
    M net/net.c
    M net/tap-linux.c
    M net/tap-linux.h
    M net/tap.c
    M net/tap_int.h

  Log Message:
  -----------
  tap: add VNET_LE/VNET_BE operations

The linux tap and macvtap backends can be told to parse vnet headers
according to little or big endian. This is done through the TUNSETVNETLE
and TUNSETVNETBE ioctls.

This patch brings all the plumbing for QEMU to use these APIs.

Signed-off-by: Greg Kurz <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 4ee9b43be9a6e4ae161a1e6322bfef90818589f6
      
https://github.com/qemu/qemu/commit/4ee9b43be9a6e4ae161a1e6322bfef90818589f6
  Author: Michael S. Tsirkin <address@hidden>
  Date:   2015-06-19 (Fri, 19 Jun 2015)

  Changed paths:
    M net/tap-aix.c
    M net/tap-bsd.c
    M net/tap-haiku.c
    M net/tap-solaris.c
    M net/tap-win32.c

  Log Message:
  -----------
  tap: fix non-linux build

tap_fd_set_vnet_le/tap_fd_set_vnet_be was missing,
fix it up.

Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Reviewed-by: Greg Kurz <address@hidden>


  Commit: 5be7d9f1b1452613b95c6ba70b8d7ad3d0797991
      
https://github.com/qemu/qemu/commit/5be7d9f1b1452613b95c6ba70b8d7ad3d0797991
  Author: Greg Kurz <address@hidden>
  Date:   2015-06-19 (Fri, 19 Jun 2015)

  Changed paths:
    M hw/net/vhost_net.c

  Log Message:
  -----------
  vhost-net: tell tap backend about the vnet endianness

The default behaviour for TAP/MACVTAP is to consider vnet as native endian.

This patch handles the cases when this is not true:
- virtio 1.0: always little-endian
- legacy cross-endian

Signed-off-by: Greg Kurz <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 1717388645670336c48aa05d19b0acd07687a821
      
https://github.com/qemu/qemu/commit/1717388645670336c48aa05d19b0acd07687a821
  Author: Cédric Le Goater <address@hidden>
  Date:   2015-06-19 (Fri, 19 Jun 2015)

  Changed paths:
    M hw/net/vhost_net.c

  Log Message:
  -----------
  vhost_net: re-enable when cross endian

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>


  Commit: 5ba03e2dd785362026917e4cc8a1fd2c64e8e62c
      
https://github.com/qemu/qemu/commit/5ba03e2dd785362026917e4cc8a1fd2c64e8e62c
  Author: Laszlo Ersek <address@hidden>
  Date:   2015-06-19 (Fri, 19 Jun 2015)

  Changed paths:
    M hw/core/sysbus.c

  Log Message:
  -----------
  hw/core: rebase sysbus_get_fw_dev_path() to g_strdup_printf()

This is done mainly for improving readability, and in preparation for the
next patch, but Markus pointed out another bonus for the string being
returned:

"No arbitrary length limit. Before the patch, it's 39 characters, and the
code breaks catastrophically when qdev_fw_name() is longer: the second
snprintf() is called with its first argument pointing beyond path[], and
its second argument underflowing to a huge size."

Cc: address@hidden
Signed-off-by: Laszlo Ersek <address@hidden>
Tested-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Marcel Apfelbaum <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 74de5504fd063019433ec0746105da774ede790d
      
https://github.com/qemu/qemu/commit/74de5504fd063019433ec0746105da774ede790d
  Author: Shmulik Ladkani <address@hidden>
  Date:   2015-06-19 (Fri, 19 Jun 2015)

  Changed paths:
    M hw/misc/ivshmem.c
    M hw/net/vmxnet3.c
    M hw/scsi/megasas.c
    M hw/scsi/vmw_pvscsi.c

  Log Message:
  -----------
  pci: Don't register a specialized 'config_write' if default behavior is 
intended

Few devices have their specialized 'config_write' methods which simply
call 'pci_default_write_config' followed by a 'msix_write_config' or
'msi_write_config' calls, using exact same arguments.

This is unnecessary as 'pci_default_write_config' already invokes
'msi_write_config' and 'msix_write_config'.

Also, since 'pci_default_write_config' is the default 'config_write'
handler, we can simply avoid the registration of these specialized
versions.

Cc: Leonid Shatz <address@hidden>
Signed-off-by: Shmulik Ladkani <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25
      
https://github.com/qemu/qemu/commit/1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25
  Author: Pankaj Gupta <address@hidden>
  Date:   2015-06-19 (Fri, 19 Jun 2015)

  Changed paths:
    M hw/net/vhost_net.c
    M hw/net/virtio-net.c
    M hw/scsi/vhost-scsi.c
    M hw/virtio/vhost.c
    M include/hw/virtio/vhost.h
    M include/net/vhost_net.h
    M net/tap.c
    M net/vhost-user.c

  Log Message:
  -----------
  vhost: enable vhost without without MSI-X

We use vhostforce to enable vhost even if Guests don't have MSI-X
support and we fall back to QEMU virtio-net.

This gives a very small performance gain, but the disadvantage
is that guest now controls which virtio code is running
(qemu or vhost) so our attack surface is doubled.

This patch will enable vhost unconditionally whenever it's requested.
For compatibility, enable vhost when vhostforce is set, as well.

Signed-off-by: Pankaj Gupta <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Jason Wang <address@hidden>


  Commit: 89e9429c3cb42400f3a80890e0c20b18aa62a11d
      
https://github.com/qemu/qemu/commit/89e9429c3cb42400f3a80890e0c20b18aa62a11d
  Author: Peter Maydell <address@hidden>
  Date:   2015-06-19 (Fri, 19 Jun 2015)

  Changed paths:
    M MAINTAINERS
    M hw/core/sysbus.c
    M hw/misc/ivshmem.c
    M hw/net/vhost_net.c
    M hw/net/virtio-net.c
    M hw/net/vmxnet3.c
    M hw/scsi/megasas.c
    M hw/scsi/vhost-scsi.c
    M hw/scsi/vmw_pvscsi.c
    M hw/virtio/vhost.c
    M include/hw/virtio/vhost.h
    M include/hw/virtio/virtio-access.h
    M include/net/net.h
    M include/net/vhost_net.h
    M linux-headers/linux/vhost.h
    M net/net.c
    M net/tap-aix.c
    M net/tap-bsd.c
    M net/tap-haiku.c
    M net/tap-linux.c
    M net/tap-linux.h
    M net/tap-solaris.c
    M net/tap-win32.c
    M net/tap.c
    M net/tap_int.h
    M net/vhost-user.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging

virtio, pci fixes, enhancements

Most notably this includes virtio cross-endian patches.

Signed-off-by: Michael S. Tsirkin <address@hidden>

# gpg: Signature made Fri Jun 19 11:18:05 2015 BST using RSA key ID D28D5469
# gpg: Good signature from "Michael S. Tsirkin <address@hidden>"
# gpg:                 aka "Michael S. Tsirkin <address@hidden>"

* remotes/mst/tags/for_upstream:
  vhost: enable vhost without without MSI-X
  pci: Don't register a specialized 'config_write' if default behavior is 
intended
  hw/core: rebase sysbus_get_fw_dev_path() to g_strdup_printf()
  vhost_net: re-enable when cross endian
  vhost-net: tell tap backend about the vnet endianness
  tap: fix non-linux build
  tap: add VNET_LE/VNET_BE operations
  vhost: set vring endianness for legacy virtio
  virtio: introduce virtio_legacy_is_cross_endian()
  linux-headers: sync vhost.h
  vhost-user: part of virtio

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/473a49460db0...89e9429c3cb4

reply via email to

[Prev in Thread] Current Thread [Next in Thread]