First requested here:
https://www.redhat.com/archives/libvir-list/2011-January/msg00889.html
and useful enough that I coded it in one day, hopefully to be in
time for the 0.8.8 feature freeze :)
Food for thought - right now, only qemu supports this. Should I do a
followup patch that moves hostsysinfo out of qemu_conf.h and into
src/datatypes.h virConnect instead, as well as some utility routines
that make it easier for all hypervisors to choose to cache sysinfo
data (if privileged)? Compare to how many (but not all) hypervisors
share util.c virGetHostname rather than duplicating the work.
Eric Blake (6):
sysinfo: expose new API
sysinfo: define internal driver API
sysinfo: implement the public API
sysinfo: implement the remote protocol
sysinfo: implement virsh support
sysinfo: implement qemu support
daemon/remote.c | 25 +++++++-
daemon/remote_dispatch_args.h | 1 +
daemon/remote_dispatch_prototypes.h | 8 ++
daemon/remote_dispatch_ret.h | 1 +
daemon/remote_dispatch_table.h | 5 ++
docs/formatdomain.html.in | 4 +-
include/libvirt/libvirt.h.in | 4 +-
src/conf/domain_conf.c | 71 +-------------------
src/driver.h | 4 +
src/esx/esx_driver.c | 3 +-
src/libvirt.c | 42 +++++++++++-
src/libvirt_private.syms | 1 +
src/libvirt_public.syms | 5 ++
src/lxc/lxc_driver.c | 1 +
src/opennebula/one_driver.c | 3 +-
src/openvz/openvz_driver.c | 3 +-
src/phyp/phyp_driver.c | 3 +-
src/qemu/qemu_driver.c | 17 +++++
src/remote/remote_driver.c | 28 ++++++++-
src/remote/remote_protocol.c | 18 +++++
src/remote/remote_protocol.h | 15 ++++
src/remote/remote_protocol.x | 13 +++-
src/remote_protocol-structs | 6 ++
src/test/test_driver.c | 3 +-
src/uml/uml_driver.c | 1 +
src/util/sysinfo.c | 125 ++++++++++++++++++++++++++++++++++-
src/util/sysinfo.h | 5 +-
src/vbox/vbox_tmpl.c | 1 +
src/vmware/vmware_driver.c | 5 +-
src/xen/xen_driver.c | 1 +
src/xenapi/xenapi_driver.c | 2 +
tools/virsh.c | 33 +++++++++-
tools/virsh.pod | 5 ++
33 files changed, 377 insertions(+), 85 deletions(-)
--
1.7.4