[libvirt] [PATCH] qemu: save domain status after set memory parameters

Ján Tomko jtomko at redhat.com
Tue Apr 14 11:54:06 UTC 2015


On Tue, Apr 14, 2015 at 06:24:41PM +0800, Shanzhi Yu wrote:
> After set memory parameters for running domain, save the change to live
> xml is needed otherwise it will disappear after restart libvirtd.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1211548
> Signed-off-by: Shanzhi Yu <shyu at redhat.com>
> ---
>  src/qemu/qemu_driver.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index e790664..2e4504e 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -9843,6 +9843,9 @@ qemuDomainSetMemoryParameters(virDomainPtr dom,
>  
>  #undef QEMU_SET_MEM_PARAMETER
>  
> +    if (virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm) < 0)
> +        goto endjob;

This should only be done if flags & VIR_DOMAIN_AFFECT_LIVE.

ACK and pushed with that change.

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150414/8cfff87d/attachment-0001.sig>


More information about the libvir-list mailing list