diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 51c664f6d15591a32a424261f07819bfaec2a388..07b90f7203396c5c63ebb1ad0f5b3cbc8eea014d 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -585,7 +585,7 @@ static int lxcDomainGetInfo(virDomainPtr dom, if (!virDomainObjIsActive(vm)) { info->cpuTime = 0; - info->memory = 0; + info->memory = vm->def->mem.cur_balloon; } else { if (virCgroupGetCpuacctUsage(priv->cgroup, &(info->cpuTime)) < 0) { virReportError(VIR_ERR_OPERATION_FAILED, diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 7abcf799c839d0116e3a17ad6caf9a8a7351c1f6..4c0d276f61d2a86e9d179d8341551e64736f1f9e 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -2653,7 +2653,7 @@ static int qemuDomainGetInfo(virDomainPtr dom, info->memory = vm->def->mem.cur_balloon; } } else { - info->memory = 0; + info->memory = vm->def->mem.cur_balloon; } info->nrVirtCpu = vm->def->vcpus;