[libvirt] [PATCH] qemu: Refactor qemuDomainSetMemoryParameters