]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Cope with missing swap cgroup controls
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 9 May 2013 12:53:39 +0000 (13:53 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 10 May 2013 18:57:18 +0000 (19:57 +0100)
commitf493d83fbd3257453e63f2f32ee90a216fd531c1
tree16229edb3e485018567d64f5911b255873fcb838
parent95934171fb243ff41a28f4fdd8c4656089f62720
Cope with missing swap cgroup controls

It is possible to build a kernel without swap cgroup controls
present. This causes a fatal error when querying memory
parameters. Treat missing swap controls as meaning "unlimited".
The fatal error remains if the user tries to actually change
the limit.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_driver.c