diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index e4f47d4..deb8b02 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -4938,7 +4938,11 @@ static int qemudDomainGetInfo(virDomainPtr dom, if (virDomainObjIsActive(vm)) { qemuDomainObjPrivatePtr priv = vm->privateData; - if (!priv->jobActive) { + + if ((vm->def->memballoon != NULL) && + (vm->def->memballoon->model == VIR_DOMAIN_MEMBALLOON_MODEL_NONE)) { + info->memory = vm->def->maxmem; + } else if (!priv->jobActive) { if (qemuDomainObjBeginJob(vm) < 0) goto cleanup;