[libvirt] [PATCH] Wire up <loader> to set the QEMU BIOS path
Eric Blake
eblake at redhat.com
Tue Apr 10 14:16:53 UTC 2012
On 04/10/2012 08:03 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> * src/qemu/qemu_command.c: Wire up -bios with <loader>
> * tests/qemuxml2argvdata/qemuxml2argv-bios.args,
> tests/qemuxml2argvdata/qemuxml2argv-bios.xml: Expand
> existing BIOS test case to cover <loader>
> ---
> src/qemu/qemu_command.c | 9 +++++++++
> tests/qemuxml2argvdata/qemuxml2argv-bios.args | 3 ++-
> tests/qemuxml2argvdata/qemuxml2argv-bios.xml | 1 +
> 3 files changed, 12 insertions(+), 1 deletions(-)
Best part is it's already documented XML, so I'm okay with no extra docs.
ACK.
>
> + if (def->os.loader) {
> + virCommandAddArg(cmd, "-bios");
> + virCommandAddArg(cmd, def->os.loader);
> + }
You could have done this in fewer lines:
if (def->os.loader)
virCommandAddArgList(cmd, "-bios", def->os.loader, NULL);
but not worth changing if you don't want to.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120410/6d3276bf/attachment-0001.sig>
More information about the libvir-list
mailing list