Re: [libvirt] [PATCH 2/3] maxmem: implement virDomainSetMaxMemory API of the qemu driver

2011-04-11 Thread Eric Blake
+static int qemudDomainSetMaxMemory(virDomainPtr dom, unsigned long memory) { +return qemudDomainSetMemoryFlags(dom, memory, + VIR_DOMAIN_MEM_MAXIMUM | VIR_DOMAIN_MEM_LIVE); Hmm. Given the above implementation, this will _always_ fail. Then

Re: [libvirt] [PATCH 2/3] maxmem: implement virDomainSetMaxMemory API of the qemu driver

2011-04-10 Thread Daniel Veillard
On Fri, Apr 08, 2011 at 05:39:36PM -0600, Eric Blake wrote: On 04/07/2011 11:08 PM, Taku Izumi wrote: This patch implements the code to support virDomainSetMaxMemory API, and to support VIR_DOMAIN_MEM_MAXIMUM flag in qemudDomainSetMemoryFlags function. As a result, we can change the

[libvirt] [PATCH 2/3] maxmem: implement virDomainSetMaxMemory API of the qemu driver

2011-04-07 Thread Taku Izumi
This patch implements the code to support virDomainSetMaxMemory API, and to support VIR_DOMAIN_MEM_MAXIMUM flag in qemudDomainSetMemoryFlags function. As a result, we can change the maximum memory size of inactive QEMU guests. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com ---