summaryrefslogtreecommitdiff
path: root/src/uml
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2014-08-11 17:40:32 +0200
committerPeter Krempa <pkrempa@redhat.com>2015-03-23 14:25:14 +0100
commitbffb9163a1f27cd16dc5b4844525db36cdfe1c3c (patch)
tree67946430e5699527b5c8565d9abb839dbca0a3ea /src/uml
parent19e85d845495fa022abe3e7d0599d8329396c1c9 (diff)
downloadlibvirt-bffb9163a1f27cd16dc5b4844525db36cdfe1c3c.tar.gz
conf: Add support for parsing and formatting max memory and slot count
Add a XML element that will allow to specify maximum supportable memory and the count of memory slots to use with memory hotplug. To avoid possible confusion and misuse of the new element this patch also explicitly forbids the use of the maxMemory setting in individual drivers's post parse callbacks. This limitation will be lifted when the support is implemented.
Diffstat (limited to 'src/uml')
-rw-r--r--src/uml/uml_driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c
index 27731f20bc..bdfc12e8e7 100644
--- a/src/uml/uml_driver.c
+++ b/src/uml/uml_driver.c
@@ -444,10 +444,14 @@ umlDomainDeviceDefPostParse(virDomainDeviceDefPtr dev,
static int
-umlDomainDefPostParse(virDomainDefPtr def ATTRIBUTE_UNUSED,
+umlDomainDefPostParse(virDomainDefPtr def,
virCapsPtr caps ATTRIBUTE_UNUSED,
void *opaque ATTRIBUTE_UNUSED)
{
+ /* memory hotplug tunables are not supported by this driver */
+ if (virDomainDefCheckUnsupportedMemoryHotplug(def) < 0)
+ return -1;
+
return 0;
}