Skip to content

Commit

Permalink
vdev: log features in vhost_get_features, vhost_set_features
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Montsev <[email protected]>
  • Loading branch information
SvartMetal authored and d-tatianin committed Jan 23, 2025
1 parent e6f2c5d commit c7576a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c7576a7

Please sign in to comment.