qemu: Update balloon info only if job is allowed

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.
This commit is contained in:
Peter Krempa 2015-06-04 13:47:02 +02:00
parent f9ab9effc5
commit 0f3e5325f5

View File

@ -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;
}