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

Stefano Garzarella posted 2 patches 2 years, 7 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210921161642.206461-1-sgarzare@redhat.com
Maintainers: Eduardo Habkost <ehabkost@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Michael S. Tsirkin" <mst@redhat.com>
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(-)
[PATCH v2 0/2] vhost-vsock: fixes for seqpacket support
Posted by Stefano Garzarella 2 years, 7 months ago
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(-)

-- 
2.31.1