[libvirt] [PATCH 1/1] qemu: min_guarantee: Parameter 'min_guarantee' not supported

Ján Tomko jtomko at redhat.com
Tue Aug 12 15:26:37 UTC 2014


On 08/11/2014 12:07 PM, Erik Skultety wrote:
> The 'min_guarantee' is used by esx and vmx drivers, with qemu however,
> libvirt should report error when starting a domain, because this
> element is not used. Resolves
> https://bugzilla.redhat.com/show_bug.cgi?id=1122455
> ---
>  src/qemu/qemu_process.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
> index 407da5e..22247fd 100644
> --- a/src/qemu/qemu_process.c
> +++ b/src/qemu/qemu_process.c
> @@ -3994,6 +3994,13 @@ int qemuProcessStart(virConnectPtr conn,
>                                      flags & VIR_QEMU_PROCESS_START_COLD) < 0)
>          goto cleanup;
>  
> +    if (vm->def->mem.min_guarantee) {
> +        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
> +                       _("Parameter 'min_guarantee' "
> +                         "not supported"));

I'd say "not supported by QEMU" here. The message as you wrote it seems like
it's not supported at all here.

As Wang Rui pointed out, it would be nice to mention in
docs/formatdomain.html.in that this is only supported by esx, openvz and and
vmx drivers.

Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140812/2788f61d/attachment-0001.sig>


More information about the libvir-list mailing list