From 36a0993a15ca43298073f96081176c612cbff515 Mon Sep 17 00:00:00 2001 From: Erik Skultety Date: Wed, 13 Aug 2014 10:07:46 +0200 Subject: [PATCH] qemu: min_guarantee: Parameter 'min_guarantee' not supported The 'min_guarantee' is used by VMware ESX and OpenVZ 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 --- docs/formatdomain.html.in | 3 ++- src/qemu/qemu_process.c | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 6d0ef8e4c..5f6ad5d0b 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -726,7 +726,8 @@
min_guarantee
The optional min_guarantee element is the guaranteed minimum memory allocation for the guest. The units for this value are - kibibytes (i.e. blocks of 1024 bytes)
+ kibibytes (i.e. blocks of 1024 bytes). This element is only supported + by VMware ESX and OpenVZ drivers. diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index baa866a1c..f68dfbee5 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -4020,6 +4020,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 by QEMU.")); + goto cleanup; + } + if (VIR_ALLOC(priv->monConfig) < 0) goto cleanup; -- 2.39.5