]> git.feebdaed.xyz Git - 0xmirror/libvirt.git/commit
bhyve: support queue configuration for NVMe disks
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sat, 8 Nov 2025 08:12:50 +0000 (09:12 +0100)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 11 Nov 2025 18:25:04 +0000 (19:25 +0100)
commit26a9c7d840d2764e61cadffd912de4d731328dae
tree19ce55bc866042d49722570f85dd8bd12e45279e
parent52bddfd65caa308c710c15ba4326e717f3fd1c1f
bhyve: support queue configuration for NVMe disks

bhyve supports queue configuration for the NVMe disks:

  maxq        Max number of queues.
  qsz         Max elements in each queue.

Map that to the disk driver's "queues" and "queue_size" attributes
respectfully, so:

  <driver name='file' type='raw' queues='2' queue_size='256'/>

results in:

  -s N:0,nvme,/tmp/disk.img,maxq=2,qsz=256

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/bhyve/bhyve_command.c
tests/bhyvexml2argvdata/bhyvexml2argv-nvme.args
tests/bhyvexml2argvdata/bhyvexml2argv-nvme.xml
tests/bhyvexml2xmloutdata/bhyvexml2xmlout-nvme.xml