mbox series

[v2,0/2] vhost-vsock: fixes for seqpacket support

Message ID 20210921161642.206461-1-sgarzare@redhat.com (mailing list archive)
Headers show
Series vhost-vsock: fixes for seqpacket support | expand

Message

Stefano Garzarella Sept. 21, 2021, 4:16 p.m. UTC
This series includes 2 patches: the first is similar of v1, but using
OnOffAuto property.
The second patch moves the `seqpacket` handling in the vhost-vsock-common
class to reuse the same code/properties also in vhost-user-vsock devices.

Perhaps the patches can be merged into a single one, but to simplify the
backport I left them separate.

v1: https://lore.kernel.org/qemu-devel/20210907124935.147164-1-sgarzare@redhat.com/

v2:
- used OnOffAuto `seqpacket` property instead of boolean `features` [stefanha]
- moved `seqpacket` property to vhost-vsock-common class

Stefano Garzarella (2):
  vhost-vsock: fix migration issue when seqpacket is supported
  vhost-vsock: handle common features in vhost-vsock-common

 include/hw/virtio/vhost-vsock-common.h |  5 +++++
 hw/core/machine.c                      |  5 ++++-
 hw/virtio/vhost-user-vsock.c           |  4 +++-
 hw/virtio/vhost-vsock-common.c         | 31 ++++++++++++++++++++++++++
 hw/virtio/vhost-vsock.c                | 11 +--------
 5 files changed, 44 insertions(+), 12 deletions(-)