Re: [libvirt] [PATCH] Make virsh setmaxmem balloon only when successful.

2010-07-20 Thread Chris Lalancette
On 07/20/10 - 09:38:45AM, Jiri Denemark wrote: > But when we decide to do that and shrink current memory in case it's bigger > than the new maximum, what should we do if the shrinking fails? The command > would fail while the maximum amount of memory for the domain was in fact > updated correctly.

Re: [libvirt] [PATCH] Make virsh setmaxmem balloon only when successful.

2010-07-20 Thread Jiri Denemark
> After playing around with virsh setmaxmem for a bit, > I ran into some surprising behavior; if a hypervisor does > not support the virDomainSetMaxMemory() API, but the value > specified for setmaxmem is less than the current amount > of memory in the domain, the domain would be ballooned > down *

Re: [libvirt] [PATCH] Make virsh setmaxmem balloon only when successful.

2010-07-19 Thread Chris Lalancette
On 07/07/10 - 05:35:39PM, Chris Lalancette wrote: > After playing around with virsh setmaxmem for a bit, > I ran into some surprising behavior; if a hypervisor does > not support the virDomainSetMaxMemory() API, but the value > specified for setmaxmem is less than the current amount > of memory in

[libvirt] [PATCH] Make virsh setmaxmem balloon only when successful.

2010-07-07 Thread Chris Lalancette
After playing around with virsh setmaxmem for a bit, I ran into some surprising behavior; if a hypervisor does not support the virDomainSetMaxMemory() API, but the value specified for setmaxmem is less than the current amount of memory in the domain, the domain would be ballooned down *before* an e