diff --git a/python/spdk/sma/device/vhost_blk.py b/python/spdk/sma/device/vhost_blk.py index deed4c3c9..9301f08a7 100644 --- a/python/spdk/sma/device/vhost_blk.py +++ b/python/spdk/sma/device/vhost_blk.py @@ -219,4 +219,6 @@ class VhostBlkDeviceManager(DeviceManager): 'Failed to set QoS') def get_qos_capabilities(self, request): - return qos.get_bdev_qos_capabilities() + bdev_caps = qos.get_bdev_qos_capabilities().max_volume_caps + return sma_pb2.GetQosCapabilitiesResponse(max_volume_caps=bdev_caps, + max_device_caps=bdev_caps) diff --git a/test/sma/vhost_blk.sh b/test/sma/vhost_blk.sh index 3012fc7fa..550cf08f1 100755 --- a/test/sma/vhost_blk.sh +++ b/test/sma/vhost_blk.sh @@ -203,6 +203,12 @@ device=$(create_device 0 $uuid | jq -r '.handle') diff <(get_qos_caps $device_vhost | jq --sort-keys) <( jq --sort-keys <<- CAPS { + "max_device_caps": { + "rw_iops": true, + "rd_bandwidth": true, + "wr_bandwidth": true, + "rw_bandwidth": true + }, "max_volume_caps": { "rw_iops": true, "rd_bandwidth": true,