mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
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:
parent
f9ab9effc5
commit
0f3e5325f5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user