[libvirt] [PATCH] qemu: Fail if per-device boot is used but deviceboot is not supported
Eric Blake
eblake at redhat.com
Wed Jan 19 14:48:13 UTC 2011
On 01/19/2011 07:07 AM, Jiri Denemark wrote:
> ---
> src/qemu/qemu_command.c | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
> index 24acc10..537e537 100644
> --- a/src/qemu/qemu_command.c
> +++ b/src/qemu/qemu_command.c
> @@ -2949,6 +2949,13 @@ qemuBuildCommandLine(virConnectPtr conn,
> }
>
> virCommandAddArgBuffer(cmd, &boot_buf);
> + } else if (!(qemuCmdFlags & QEMUD_CMD_FLAG_BOOTINDEX)) {
> + /* def->os.nBootDevs is guaranteed to be > 0 unless per-device boot
> + * configuration is used
> + */
> + qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
> + _("hypervisor lacks deviceboot feature"));
> + goto error;
> }
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110119/095463a1/attachment-0001.sig>
More information about the libvir-list
mailing list