qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] d288ee: libvhost-user: fix -Waddress-of-packe


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] d288ee: libvhost-user: fix -Waddress-of-packed-member
Date: Mon, 13 May 2019 05:54:42 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: d288eef3a0a8ac46cc45808b50d73606476148b0
      
https://github.com/qemu/qemu/commit/d288eef3a0a8ac46cc45808b50d73606476148b0
  Author: Marc-André Lureau <address@hidden>
  Date:   2019-05-10 (Fri, 10 May 2019)

  Changed paths:
    M contrib/libvhost-user/libvhost-user.c

  Log Message:
  -----------
  libvhost-user: fix -Waddress-of-packed-member

/home/elmarco/src/qemu/contrib/libvhost-user/libvhost-user.c: In function 
‘vu_set_mem_table_exec_postcopy’:
/home/elmarco/src/qemu/contrib/libvhost-user/libvhost-user.c:546:31: warning: 
taking address of packed member of ‘struct VhostUserMsg’ may result in an 
unaligned pointer value [-Waddress-of-packed-member]
  546 |     VhostUserMemory *memory = &vmsg->payload.memory;
      |                               ^~~~~~~~~~~~~~~~~~~~~
/home/elmarco/src/qemu/contrib/libvhost-user/libvhost-user.c: In function 
‘vu_set_mem_table_exec’:
/home/elmarco/src/qemu/contrib/libvhost-user/libvhost-user.c:688:31: warning: 
taking address of packed member of ‘struct VhostUserMsg’ may result in an 
unaligned pointer value [-Waddress-of-packed-member]
  688 |     VhostUserMemory *memory = &vmsg->payload.memory;
      |                               ^~~~~~~~~~~~~~~~~~~~~
/home/elmarco/src/qemu/contrib/libvhost-user/libvhost-user.c: In function 
‘vu_set_vring_addr_exec’:
/home/elmarco/src/qemu/contrib/libvhost-user/libvhost-user.c:817:36: warning: 
taking address of packed member of ‘struct VhostUserMsg’ may result in an 
unaligned pointer value [-Waddress-of-packed-member]
  817 |     struct vhost_vring_addr *vra = &vmsg->payload.addr;
      |                                    ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Marc-André Lureau <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 78067fdef6828febf894ff1941cfb95e2dd00ad5
      
https://github.com/qemu/qemu/commit/78067fdef6828febf894ff1941cfb95e2dd00ad5
  Author: Marc-André Lureau <address@hidden>
  Date:   2019-05-10 (Fri, 10 May 2019)

  Changed paths:
    M contrib/libvhost-user/libvhost-user.c

  Log Message:
  -----------
  libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config

Add the config protocol feature bit if the set_config & get_config
callbacks are implemented.

Signed-off-by: Marc-André Lureau <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: f24bb7287ddbdfd9b75fe782c366abc7939a4190
      
https://github.com/qemu/qemu/commit/f24bb7287ddbdfd9b75fe782c366abc7939a4190
  Author: Marc-André Lureau <address@hidden>
  Date:   2019-05-10 (Fri, 10 May 2019)

  Changed paths:
    M MAINTAINERS
    M backends/Makefile.objs
    A backends/vhost-user.c
    A include/sysemu/vhost-user-backend.h

  Log Message:
  -----------
  Add vhost-user-backend

Create a vhost-user-backend object that holds a connection to a
vhost-user backend (or "slave" process) and can be referenced from
virtio devices that support it. See later patches for input & gpu
usage.

Note: a previous iteration of this object made it user-creatable, and
allowed managed sub-process spawning, but that has been dropped for
now.

Signed-off-by: Marc-André Lureau <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 9c4d05b741660958cf8769fa7ae73617fe4c67bd
      
https://github.com/qemu/qemu/commit/9c4d05b741660958cf8769fa7ae73617fe4c67bd
  Author: Marc-André Lureau <address@hidden>
  Date:   2019-05-10 (Fri, 10 May 2019)

  Changed paths:
    M MAINTAINERS
    M hw/input/Kconfig
    M hw/input/Makefile.objs
    A hw/input/vhost-user-input.c
    M hw/virtio/Makefile.objs
    A hw/virtio/vhost-user-input-pci.c
    M include/hw/virtio/virtio-input.h

  Log Message:
  -----------
  Add vhost-user-input-pci

Add a new virtio-input device, which connects to a vhost-user
backend.

Instead of reading configuration directly from an input device /
evdev (like virtio-input-host), it reads it over vhost-user protocol
with {SET,GET}_CONFIG messages. The vhost-user-backend handles the
queues & events setup.

Signed-off-by: Marc-André Lureau <address@hidden>
Message-id: address@hidden

[ kraxel: drop -{non-,}transitional variants ]
[ kraxel: fix "make check" on !linux ]

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: caf88d74a7aebce5c70ac6d6d72c5b1a47eb4ecf
      
https://github.com/qemu/qemu/commit/caf88d74a7aebce5c70ac6d6d72c5b1a47eb4ecf
  Author: Marc-André Lureau <address@hidden>
  Date:   2019-05-10 (Fri, 10 May 2019)

  Changed paths:
    M util/qemu-sockets.c

  Log Message:
  -----------
  util: simplify unix_listen()

The only caller of unix_listen() left is qga/channel-posix.c.

There is no need to deal with legacy coma-trailing options ",...".

Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Daniel P. Berrangé <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: d923e30578a65392e50e530e3a29b2edf5c51c5b
      
https://github.com/qemu/qemu/commit/d923e30578a65392e50e530e3a29b2edf5c51c5b
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-13 (Mon, 13 May 2019)

  Changed paths:
    M hw/virtio/virtio-input-host-pci.c

  Log Message:
  -----------
  virtio-input-host-pci: cleanup types

virtio input is virtio-1.0 only, so we don't need the -transitional and
-non-transitional variants.

Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
Message-id: address@hidden


  Commit: 503591cb6c28c3ddbe38ea50cab2f0dd3d6cd929
      
https://github.com/qemu/qemu/commit/503591cb6c28c3ddbe38ea50cab2f0dd3d6cd929
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-13 (Mon, 13 May 2019)

  Changed paths:
    M hw/input/Kconfig
    M hw/input/Makefile.objs

  Log Message:
  -----------
  virtio-input: fix Kconfig dependency and Makefile

Make VIRTIO_INPUT_HOST depend on VIRTIO_INPUT.
Use CONFIG_VIRTIO_INPUT_HOST in Makefile.

Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
Message-id: address@hidden


  Commit: 082b4061a4a28549bcb22ba3bab8e477e4fca018
      
https://github.com/qemu/qemu/commit/082b4061a4a28549bcb22ba3bab8e477e4fca018
  Author: Peter Maydell <address@hidden>
  Date:   2019-05-13 (Mon, 13 May 2019)

  Changed paths:
    M MAINTAINERS
    M backends/Makefile.objs
    A backends/vhost-user.c
    M contrib/libvhost-user/libvhost-user.c
    M hw/input/Kconfig
    M hw/input/Makefile.objs
    A hw/input/vhost-user-input.c
    M hw/virtio/Makefile.objs
    A hw/virtio/vhost-user-input-pci.c
    M hw/virtio/virtio-input-host-pci.c
    M include/hw/virtio/virtio-input.h
    A include/sysemu/vhost-user-backend.h
    M util/qemu-sockets.c

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/kraxel/tags/input-20190513-v2-pull-request' into staging

input: add vhost-user-input, virtio-input fixes.

# gpg: Signature made Mon 13 May 2019 07:52:39 BST
# gpg:                using RSA key 4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>" [full]
# gpg:                 aka "Gerd Hoffmann <address@hidden>" [full]
# gpg:                 aka "Gerd Hoffmann (private) <address@hidden>" [full]
# Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138

* remotes/kraxel/tags/input-20190513-v2-pull-request:
  virtio-input: fix Kconfig dependency and Makefile
  virtio-input-host-pci: cleanup types
  util: simplify unix_listen()
  Add vhost-user-input-pci
  Add vhost-user-backend
  libvhost-user: add PROTOCOL_F_CONFIG if {set, get}_config
  libvhost-user: fix -Waddress-of-packed-member

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


Compare: https://github.com/qemu/qemu/compare/04d6556c5c91...082b4061a4a2



reply via email to

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