|
18 | 18 | * Usage: add options:
|
19 | 19 | * -drive file=<file>,if=none,id=<drive_id>
|
20 | 20 | * -device nvme,drive=<drive_id>,serial=<serial>,id=<id[optional]>, \
|
21 |
| - * cmb_size_mb=<cmb_size_mb[optional]> |
| 21 | + * cmb_size_mb=<cmb_size_mb[optional]>, \ |
| 22 | + * num_queues=<N[optional]> |
22 | 23 | *
|
23 | 24 | * Note cmb_size_mb denotes size of CMB in MB. CMB is assumed to be at
|
24 | 25 | * offset 0 in BAR2 and supports only WDS, RDS and SQS for now.
|
@@ -1232,7 +1233,6 @@ static void nvme_realize(PCIDevice *pci_dev, Error **errp)
|
1232 | 1233 | pcie_endpoint_cap_init(&n->parent_obj, 0x80);
|
1233 | 1234 |
|
1234 | 1235 | n->num_namespaces = 1;
|
1235 |
| - n->num_queues = 64; |
1236 | 1236 | n->reg_size = pow2ceil(0x1004 + 2 * (n->num_queues + 1) * 4);
|
1237 | 1237 | n->ns_size = bs_size / (uint64_t)n->num_namespaces;
|
1238 | 1238 |
|
@@ -1341,6 +1341,7 @@ static Property nvme_props[] = {
|
1341 | 1341 | DEFINE_BLOCK_PROPERTIES(NvmeCtrl, conf),
|
1342 | 1342 | DEFINE_PROP_STRING("serial", NvmeCtrl, serial),
|
1343 | 1343 | DEFINE_PROP_UINT32("cmb_size_mb", NvmeCtrl, cmb_size_mb, 0),
|
| 1344 | + DEFINE_PROP_UINT32("num_queues", NvmeCtrl, num_queues, 64), |
1344 | 1345 | DEFINE_PROP_END_OF_LIST(),
|
1345 | 1346 | };
|
1346 | 1347 |
|
|
0 commit comments