[libvirt] [PATCH 3/6] qemu: domain: Introduce helper to convert <loader> into virStorageSource

Daniel P. Berrangé berrange at redhat.com
Thu Nov 21 18:07:13 UTC 2019


On Fri, Nov 15, 2019 at 04:51:49PM +0100, Peter Krempa wrote:
> 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 at redhat.com>
> ---
>  src/qemu/qemu_domain.c | 58 ++++++++++++++++++++++++++++++++++++++++++
>  src/qemu/qemu_domain.h |  3 +++
>  2 files changed, 61 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list