[libvirt] [PATCH v1 06/15] conf: Introduce firmware attribute to <os/>
Laszlo Ersek
lersek at redhat.com
Thu Feb 28 09:29:03 UTC 2019
On 02/27/19 11:04, Michal Privoznik wrote:
> The idea is that using this attribute users enable libvirt to
> automagically select firmware image for their domain. For
> instance:
>
> <os firmware='efi'>
> <type arch='x86_64' machine='pc-q35-4.0'>hvm</type>
> <loader secure='no'/>
> </os>
>
> <os firmware='bios'>
> <type arch='x86_64' machine='pc-q35-4.0'>hvm</type>
> </os>
>
> (The automagic of selecting firmware image will be described in
> later commits.)
>
> Accepted values are 'bios' and 'efi' to let libvirt select
> corresponding type of firmware.
>
> I know it is a good sign to introduce xml2xml test case when
> changing XML config parser but that will have to come later.
> Firmware auto selection is not enabled for any driver just yet so
> any xml2xml test would fail right away.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> docs/formatdomain.html.in | 22 +++++++++-
> docs/schemas/domaincommon.rng | 8 ++++
> src/conf/domain_conf.c | 75 ++++++++++++++++++++++++++++-------
> src/conf/domain_conf.h | 12 ++++++
> src/libvirt_private.syms | 2 +
> 5 files changed, 103 insertions(+), 16 deletions(-)
I prefer to leave the review of this patch to others; again because I'm
unsure if this is the desired syntax in the domain XML.
Thanks
Laszlo
More information about the libvir-list
mailing list