]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Prepare hostdev data which depends on the host state separately
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 Oct 2020 13:06:01 +0000 (15:06 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 20 Oct 2020 13:08:22 +0000 (15:08 +0200)
commit7b0ced89e7eea2adddfae9afa8def7b8b8dbe076
tree774e2b1bb3eaba8cb27b192ea431a62a5481600e
parent609497876cb7260a0204bfc569cc1400d80f4d4b
qemu: Prepare hostdev data which depends on the host state separately

SCSI hostdev setup requires querying the host os for the actual path of
the configured hostdev. This was historically done in the command line
formatter. Our new approach is to split out this part into
'qemuProcessPrepareHost' which is designed to be skipped in tests.

Refactor the hostdev code to use this new semantics, and add appropriate
handlers filling in the data for tests and the qemuConnectDomainXMLToNative
users.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h
tests/qemuxml2argvtest.c