Merge pull request #11888 from spuzirev/main

runtime: fix "num-queues expects uint64" error with virtio-blk
This commit is contained in:
Alex Lyn
2025-10-09 20:21:32 +08:00
committed by GitHub

View File

@@ -14,7 +14,6 @@ import (
"io" "io"
"net" "net"
"os" "os"
"strconv"
"syscall" "syscall"
"time" "time"
@@ -1116,7 +1115,7 @@ func (q *QMP) ExecutePCIDeviceAdd(ctx context.Context, blockdevID, devID, driver
args["share-rw"] = true args["share-rw"] = true
} }
if queues > 0 { if queues > 0 {
args["num-queues"] = strconv.Itoa(queues) args["num-queues"] = queues
} }
var transport VirtioTransport var transport VirtioTransport