  [libvirt] [RFC] Memory controller exploitation in libvirt
Subject: [RFC] Memory controller exploitation in libvirt
Memory CGroup is a kernel feature that can be exploited
effectively in the  current libvirt/qemu driver. Here is a shot
at that.   At present, QEmu uses memory ballooning feature,
where the memory can be  inflated/deflated as and when needed,
co-operatively between the host and  the guest. There should be
some mechanism where the host can have more  control over the
guests memory usage. Memory CGroup provides features such  as
hard-limit and soft-limit for memory, and hard-limit for swap
area.   Design 1: Provide new API and XML changes for resource
management   All the memory controller tunables are not
supported with the current  abstractions provided by the libvirt
API. libvirt works on various OS. This  new API will support
GNU/Linux initially and as and when other platforms  starts
supporting memory tunables, the interface could be enabled for
them. Adding following two function point