Stefano Garzarella d6a9378f47 vhost-vsock: fix migration issue when seqpacket is supported
Commit 1e08fd0a46 ("vhost-vsock: SOCK_SEQPACKET feature bit support")
enabled the SEQPACKET feature bit.
This commit is released with QEMU 6.1, so if we try to migrate a VM where
the host kernel supports SEQPACKET but machine type version is less than
6.1, we get the following errors:

    Features 0x130000002 unsupported. Allowed features: 0x179000000
    Failed to load virtio-vhost_vsock:virtio
    error while loading state for instance 0x0 of device '0000:00:05.0/virtio-vhost_vsock'
    load of migration failed: Operation not permitted

Let's disable the feature bit for machine types < 6.1.
We add a new OnOffAuto property for this, called `seqpacket`.
When it is `auto` (default), QEMU behaves as before, trying to enable the
feature, when it is `on` QEMU will fail if the backend (vhost-vsock
kernel module) doesn't support it.

Fixes: 1e08fd0a46 ("vhost-vsock: SOCK_SEQPACKET feature bit support")
Cc: qemu-stable@nongnu.org
Reported-by: Jiang Wang <jiang.wang@bytedance.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20210921161642.206461-2-sgarzare@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-10-05 17:30:57 -04:00
..
2021-05-12 18:20:25 +02:00
2021-07-08 14:15:45 -05:00
2021-02-21 18:41:04 +01:00
2021-09-20 08:50:59 +02:00
2021-03-05 15:17:34 +00:00
2021-09-29 10:45:19 +02:00
2021-09-30 12:26:06 +10:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00
2021-02-21 12:12:18 +00:00
2021-03-06 16:18:42 +01:00
2020-09-09 09:27:09 -04:00
2021-09-21 07:56:49 +10:00
2019-08-16 13:31:52 +02:00
2021-05-12 17:42:23 +02:00
2020-09-09 09:27:09 -04:00
2019-08-16 13:31:52 +02:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00
2020-09-18 14:12:32 -04:00
2019-06-12 13:20:21 +02:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00