]> xenbits.xensource.com Git - libvirt.git/commit
qemu: domain: Introduce helper to convert <loader> into virStorageSource
authorPeter Krempa <pkrempa@redhat.com>
Fri, 15 Nov 2019 15:25:26 +0000 (16:25 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 22 Nov 2019 07:32:25 +0000 (08:32 +0100)
commit11d13ad8cfbdde986338ffe0518b77ffa6be285e
treef0a9183665c68f1fd480bf8a0df2fbf7f171decd
parent07675b0100da4b26a84bc53a7480b4293eb52543
qemu: domain: Introduce helper to convert <loader> into virStorageSource

Add a helper which will covert the PFLASH code file and variable file
into the virStorageSource objects stored in private data so that we can
use them with -blockdev while keeping the infrastructure to determine
the path to the loaders intact.

This is a temporary solution until we will want to do snapshots of the
pflash where we will be forced do track the full backing chain in the
XML.

In the meanwhile just convert it partially so that we can stop using
-drive.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h