diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-12-19 12:13:57 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-01-20 19:51:24 +0100 |
commit | 78c73e9395b13354272010d2f202c819689d48f8 (patch) | |
tree | 7b927977aa873acf252a0e7f93c7b599ec2619c3 | |
parent | 3c1d91b8162607ec27b05502278a361cd73a54e2 (diff) | |
download | passt-78c73e9395b13354272010d2f202c819689d48f8.tar passt-78c73e9395b13354272010d2f202c819689d48f8.tar.gz passt-78c73e9395b13354272010d2f202c819689d48f8.tar.bz2 passt-78c73e9395b13354272010d2f202c819689d48f8.tar.lz passt-78c73e9395b13354272010d2f202c819689d48f8.tar.xz passt-78c73e9395b13354272010d2f202c819689d48f8.tar.zst passt-78c73e9395b13354272010d2f202c819689d48f8.zip |
vhost-user: Report to front-end we support VHOST_USER_PROTOCOL_F_LOG_SHMFD
This features allows QEMU to be migrated. We need also to report
VHOST_F_LOG_ALL.
This protocol feature reports we can log the page update and
implement VHOST_USER_SET_LOG_BASE and VHOST_USER_SET_LOG_FD.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | vhost_user.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vhost_user.c b/vhost_user.c index 66ded12..747b7f6 100644 --- a/vhost_user.c +++ b/vhost_user.c @@ -334,6 +334,7 @@ static bool vu_get_features_exec(struct vu_dev *vdev, uint64_t features = 1ULL << VIRTIO_F_VERSION_1 | 1ULL << VIRTIO_NET_F_MRG_RXBUF | + 1ULL << VHOST_F_LOG_ALL | 1ULL << VHOST_USER_F_PROTOCOL_FEATURES; (void)vdev; @@ -911,7 +912,8 @@ static bool vu_set_vring_err_exec(struct vu_dev *vdev, 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; + uint64_t features = 1ULL << VHOST_USER_PROTOCOL_F_REPLY_ACK | + 1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD; (void)vdev; vmsg_set_reply_u64(msg, features); |