aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2024-12-19 12:14:00 +0100
committerStefano Brivio <sbrivio@redhat.com>2025-01-20 19:51:24 +0100
commit412ed4f09ff2e07545acdc5fe87a55a34aab4f92 (patch)
treefbbbf7d278e7b61fc69e065adfdbd440fe67bfea
parent31d70024beda1e49131d7b68dd7554bee16c79f3 (diff)
downloadpasst-412ed4f09ff2e07545acdc5fe87a55a34aab4f92.tar
passt-412ed4f09ff2e07545acdc5fe87a55a34aab4f92.tar.gz
passt-412ed4f09ff2e07545acdc5fe87a55a34aab4f92.tar.bz2
passt-412ed4f09ff2e07545acdc5fe87a55a34aab4f92.tar.lz
passt-412ed4f09ff2e07545acdc5fe87a55a34aab4f92.tar.xz
passt-412ed4f09ff2e07545acdc5fe87a55a34aab4f92.tar.zst
passt-412ed4f09ff2e07545acdc5fe87a55a34aab4f92.zip
vhost-user: Report to front-end we support VHOST_USER_PROTOCOL_F_DEVICE_STATE
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> Signed-off-by: Stefano Brivio <sbrivio@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 daff9ab..f12dec5 100644
--- a/vhost_user.c
+++ b/vhost_user.c
@@ -913,7 +913,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);