[libvirt] [PATCH 2/2] qemu: Update balloon info only if job is allowed
Peter Krempa
pkrempa at redhat.com
Thu Jun 4 12:06:28 UTC 2015
In qemuDomainUpdateCurrentMemorySize I misplaced the actual update of
the balloon size to a place where it may not be initialized. Move it a
few lines above.
---
src/qemu/qemu_domain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 3826b2f..0682390 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -3256,9 +3256,9 @@ qemuDomainUpdateCurrentMemorySize(virQEMUDriverPtr driver,
if (ret < 0)
return -1;
- }
- vm->def->mem.cur_balloon = balloon;
+ vm->def->mem.cur_balloon = balloon;
+ }
return 0;
}
--
2.4.1
More information about the libvir-list
mailing list