]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Automatically create NVRAM store
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Aug 2014 14:59:21 +0000 (16:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Sep 2014 07:38:07 +0000 (09:38 +0200)
commit742b08e30fd503bc992e864828cbabd7e6a099ec
tree4acd9e1f26b826765a9c02372c989deb21400843
parent542899168c382610dbad9a597d27ef3d7c699f68
qemu: Automatically create NVRAM store

When using split UEFI image, it may come handy if libvirt manages per
domain _VARS file automatically. While the _CODE file is RO and can be
shared among multiple domains, you certainly don't want to do that on
the _VARS file. This latter one needs to be per domain. So at the
domain startup process, if it's determined that domain needs _VARS
file it's copied from this master _VARS file. The location of the
master file is configurable in qemu.conf.

Temporary, on per domain basis the location of master NVRAM file can
be overridden by this @template attribute I'm inventing to the
<nvram/> element. All it does is holding path to the master NVRAM file
from which local copy is created. If that's the case, the map in
qemu.conf is not consulted.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
13 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
libvirt.spec.in
src/Makefile.am
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/libvirtd_qemu.aug
src/qemu/qemu.conf
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_process.c
src/qemu/test_libvirtd_qemu.aug.in
tests/domainschemadata/domain-bios-nvram-empty.xml [new file with mode: 0644]