]> xenbits.xensource.com Git - libvirt.git/commit
qemu: process: Extract host setup of disk device into helpers
authorPeter Krempa <pkrempa@redhat.com>
Thu, 26 Oct 2023 13:05:41 +0000 (15:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 27 Oct 2023 13:04:20 +0000 (15:04 +0200)
commit61baeb1152f9d8ed13bef1f71fdc9feab5481057
tree31c783d9d9ded2fc92062cef55ed080b7acba27a
parent64e98bd85307c6ea98fc70322361ddcde237ec9b
qemu: process: Extract host setup of disk device into helpers

Currently the code sets up only VDPA backends but will be used later in
hotplug code too.

This patch also uses normal forward iteration in the loop in
qemuProcessPrepareHostStorage as we don't need to remove disks from the
disk list at that point.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c
src/qemu/qemu_process.h