From c7576a70930f585d0629fa75daf1f90e2f4df587 Mon Sep 17 00:00:00 2001 From: Mikhail Montsev Date: Thu, 23 Jan 2025 13:47:31 +0000 Subject: [PATCH] vdev: log features in vhost_get_features, vhost_set_features Signed-off-by: Mikhail Montsev --- vdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vdev.c b/vdev.c index 5ad94fc..bec46e3 100644 --- a/vdev.c +++ b/vdev.c @@ -753,6 +753,9 @@ static int vhost_get_features(struct vhd_vdev *vdev, const void *payload, vdev->supported_features = g_default_features | vdev->type->get_features(vdev); + VHD_OBJ_INFO(vdev, "GET_FEATURES: reply with supported_features 0x%" PRIx64, + vdev->supported_features); + return vhost_reply_u64(vdev, vdev->supported_features); } @@ -791,6 +794,8 @@ static int vhost_set_features(struct vhd_vdev *vdev, const void *payload, uint64_t supported_features = vdev->supported_features; uint64_t changed_features; + VHD_OBJ_INFO(vdev, "SET_FEATURES: features 0x%" PRIx64, *features); + if (num_fds || size < sizeof(*features)) { VHD_OBJ_ERROR(vdev, "malformed message size=%zu #fds=%zu", size, num_fds);