]> xenbits.xensource.com Git - libvirt.git/commit
libxl: implement virDomainMemorystats
authorJoao Martins <joao.m.martins@oracle.com>
Fri, 13 Nov 2015 13:14:42 +0000 (13:14 +0000)
committerJim Fehlig <jfehlig@suse.com>
Wed, 18 Nov 2015 20:34:04 +0000 (13:34 -0700)
commit6472e54a98fdc6067752485fd036a274fe65b98f
tree4695927043cb8487bd97c246d70bdb0f00cda86e
parent867f34a6837e05fcd5c2ea4ae8c7d111e3e2f5a4
libxl: implement virDomainMemorystats

Introduce support for domainMemoryStats API call, which
consequently enables the use of `virsh dommemstat` command to
query for memory statistics of a domain. We support
the following statistics: balloon info, available and currently
in use. swap-in, swap-out, major-faults, minor-faults require
cooperation of the guest and thus currently not supported.

We build on the data returned from libxl_domain_info and deliver
it in the virDomainMemoryStat format.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
src/libxl/libxl_driver.c