From 2978077bdb93eca4da693000a1809b70ad660376 Mon Sep 17 00:00:00 2001 From: ybduan Date: Thu, 9 Jan 2025 10:18:36 +0800 Subject: [PATCH] num_queues: correct num-queues to accept int value According to the latest upstream qemu, argument num-queues only accepts uint64 value. Signed-off-by: ybduan --- virttest/qemu_devices/qcontainer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virttest/qemu_devices/qcontainer.py b/virttest/qemu_devices/qcontainer.py index 841d125caf..41f05efe7f 100644 --- a/virttest/qemu_devices/qcontainer.py +++ b/virttest/qemu_devices/qcontainer.py @@ -2214,7 +2214,7 @@ def define_hbas( _bus_name = bus_name.rsplit(".")[0] bus_params = {"id": _bus_name, "driver": atype} if num_queues is not None and int(num_queues) > 1: - bus_params["num_queues"] = num_queues + bus_params["num_queues"] = int(num_queues) if bus_extra_params: for extra_param in bus_extra_params.split(","): key, value = extra_param.split("=") @@ -2921,7 +2921,7 @@ def define_hbas( devices[-1].set_param(key, value) if self.is_dev_iothread_vq_supported(devices[-1]): if num_queues: - devices[-1].set_param("num-queues", num_queues) + devices[-1].set_param("num-queues", int(num_queues)) # add iothread-vq-mapping if available if image_iothread_vq_mapping: val = []