[libvirt] [PATCH v2] LXC: add support for --config in setmem command
chenhanxiao at cn.fujitsu.com
chenhanxiao at cn.fujitsu.com
Fri Jul 11 04:02:11 UTC 2014
> -----Original Message-----
> From: Ján Tomko [mailto:jtomko at redhat.com]
> Sent: Thursday, July 10, 2014 9:40 PM
> >
> > - if (virDomainSetMemoryEnsureACL(dom->conn, vm->def) < 0)
> > + if (virDomainSetMemoryFlagsEnsureACL(dom->conn, vm->def, flags) < 0)
> > + goto cleanup;
> > +
> > + if (!(caps = virLXCDriverGetCapabilities(driver, false)))
> > + goto cleanup;
> > +
> > + if (virDomainLiveConfigHelperMethod(caps, driver->xmlopt, vm, &flags,
> > + &persistentDef) < 0)
> > goto cleanup;
> >
>
> > if (newmem > vm->def->mem.max_balloon) {
>
> This check should only be done for AFFECT_LIVE.
> For AFFECT_CONFIG it needs to be checked against the max_balloon value from
> the persistent definition.
>
Oops, my fault.
Thanks for your comments
- Chen
More information about the libvir-list
mailing list