aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2024-12-18 17:31:20 +0100
committerLaurent Vivier <lvivier@redhat.com>2024-12-19 12:10:15 +0100
commit14ab2b9eaecc5772a6ebcc4142603d625141f51b (patch)
treeafd338b3b91b53fcc6b456bfd33380acbe0455eb
parent5dbe6a775b09243ecdd04c17a26e068ece49632f (diff)
downloadpasst-14ab2b9eaecc5772a6ebcc4142603d625141f51b.tar
passt-14ab2b9eaecc5772a6ebcc4142603d625141f51b.tar.gz
passt-14ab2b9eaecc5772a6ebcc4142603d625141f51b.tar.bz2
passt-14ab2b9eaecc5772a6ebcc4142603d625141f51b.tar.lz
passt-14ab2b9eaecc5772a6ebcc4142603d625141f51b.tar.xz
passt-14ab2b9eaecc5772a6ebcc4142603d625141f51b.tar.zst
passt-14ab2b9eaecc5772a6ebcc4142603d625141f51b.zip
vhost-user: Report to front-end we support VHOST_USER_PROTOCOL_F_DEVICE_STATEvhost-user-migration
Report to front-end that we support device state commands: VHOST_USER_CHECK_DEVICE_STATE VHOST_USER_SET_LOG_BASE These feature is needed to transfer backend state using frontend channel. Signed-off-by: Laurent Vivier <lvivier@redhat.com>
-rw-r--r--vhost_user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vhost_user.c b/vhost_user.c
index 11b0b44..41148c4 100644
--- a/vhost_user.c
+++ b/vhost_user.c
@@ -914,7 +914,8 @@ static bool vu_get_protocol_features_exec(struct vu_dev *vdev,
struct vhost_user_msg *msg)
{
uint64_t features = 1ULL << VHOST_USER_PROTOCOL_F_REPLY_ACK |
- 1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD;
+ 1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD |
+ 1ULL << VHOST_USER_PROTOCOL_F_DEVICE_STATE;
(void)vdev;
vmsg_set_reply_u64(msg, features);