diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-14 15:40:48 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-14 15:40:48 +0100 |
commit | 30ce2a9295a53f989897497df0c195dc597b00d6 (patch) | |
tree | ed5447796448766566eadbae7fcc7fb10b1466dc /tools/xenstat | |
parent | 5dc12fe2424c7cbaffd1292083a5c30ecb9d965c (diff) | |
download | xen-30ce2a9295a53f989897497df0c195dc597b00d6.tar.gz xen-30ce2a9295a53f989897497df0c195dc597b00d6.tar.bz2 xen-30ce2a9295a53f989897497df0c195dc597b00d6.zip |
Store an opaque handle (tools uuid) in the domain structure
within Xen. Refactor GETVCPUCONTEXT into an op of the same
name plus a new op GETVCPUINFO. Move the cpumap and cpu info
arrays from GETDOMAININFO and move into new GETVCPUINFO.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstat')
-rw-r--r-- | tools/xenstat/libxenstat/src/xen-interface.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/xenstat/libxenstat/src/xen-interface.c b/tools/xenstat/libxenstat/src/xen-interface.c index 9358494d11..e0f9de7c07 100644 --- a/tools/xenstat/libxenstat/src/xen-interface.c +++ b/tools/xenstat/libxenstat/src/xen-interface.c @@ -178,16 +178,15 @@ long long xi_get_vcpu_usage(xi_handle *handle, unsigned int domain, unsigned int vcpu) { dom0_op_t op; - op.u.getvcpucontext.domain = domain; - op.u.getvcpucontext.vcpu = vcpu; - op.u.getvcpucontext.ctxt = NULL; + op.u.getvcpuinfo.domain = domain; + op.u.getvcpuinfo.vcpu = vcpu; - if (xi_make_dom0_op(handle, &op, DOM0_GETVCPUCONTEXT) < 0) { - perror("DOM0_GETVCPUCONTEXT Hypercall failed"); + if (xi_make_dom0_op(handle, &op, DOM0_GETVCPUINFO) < 0) { + perror("DOM0_GETVCPUINFO Hypercall failed"); return -1; } - return op.u.getvcpucontext.cpu_time; + return op.u.getvcpuinfo.cpu_time; } /* gets xen version information from hypervisor */ |