]> xenbits.xensource.com Git - libvirt.git/commit
xenconfig: support bios=ovmf xl.cfg
authorJim Fehlig <jfehlig@suse.com>
Wed, 20 Apr 2016 21:14:34 +0000 (15:14 -0600)
committerJim Fehlig <jfehlig@suse.com>
Mon, 13 Jun 2016 20:13:17 +0000 (14:13 -0600)
commit53d98ccea74cfde2d87157d0e5927892901dd79e
treedc273663145ff56031bf1bb8ed218aa866932d03
parent11567cf66f360d600af0e3b88403ba3543063bbf
xenconfig: support bios=ovmf xl.cfg

Add support to xenconfig for conversion of xl.cfg(5) bios config
to/from libvirt domXml <loader> config. SeaBIOS is the default
for HVM guests using upstream QEMU. ROMBIOS is the default when
using the old qemu-dm. This patch allows specifying OVMF as an
alternate firmware.

Example xl.cfg:
  bios = "ovmf"

Example domXML:
  <os>
    ...
    <loader readonly='yes' type='pflash'>/usr/lib/xen/boot/ovmf.bin</loader>
  </os>

Note that currently Xen does not support a separate nvram for
non-volatile variables.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/Makefile.am
src/xenconfig/xen_xl.c
tests/testutils.c
tests/testutils.h
tests/xlconfigdata/test-fullvirt-ovmf.cfg [new file with mode: 0644]
tests/xlconfigdata/test-fullvirt-ovmf.xml [new file with mode: 0644]
tests/xlconfigtest.c