diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-17 11:36:36 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-17 11:36:36 +0100 |
commit | 981d9b117d4ad6b759af0c42a044050ab06207f5 (patch) | |
tree | 81cc2c335bfa6af1eeca01ad0adaa753ba0031e8 /tools/xenstat | |
parent | ec82f54895da4932edc67d190ccf592f219f1f01 (diff) | |
download | xen-981d9b117d4ad6b759af0c42a044050ab06207f5.tar.gz xen-981d9b117d4ad6b759af0c42a044050ab06207f5.tar.bz2 xen-981d9b117d4ad6b759af0c42a044050ab06207f5.zip |
Plumb GETVCPUINFO dom0_op through to Python. Remove
n_vcpu field from GETDOMAININFO: replaced with
nr_online_vcpus and max_vcpu_id (both plumbed through to
Python).
TODO: Remove 'vcpus' entry in getdomaininfo Python
dictionary.
TODO: Don't represent 'cpumap' as a bitmap in Python.
It would be more sensible to represent as a list
of integer CPU numbers.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstat')
-rw-r--r-- | tools/xenstat/libxenstat/src/xenstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenstat/libxenstat/src/xenstat.c b/tools/xenstat/libxenstat/src/xenstat.c index c58a720bb8..d9b18dbcd0 100644 --- a/tools/xenstat/libxenstat/src/xenstat.c +++ b/tools/xenstat/libxenstat/src/xenstat.c @@ -229,7 +229,7 @@ xenstat_node *xenstat_get_node(xenstat_handle * handle, unsigned int flags) domain->id = domaininfo[i].domain; domain->state = domaininfo[i].flags; domain->cpu_ns = domaininfo[i].cpu_time; - domain->num_vcpus = domaininfo[i].n_vcpu; + domain->num_vcpus = domaininfo[i].nr_online_vcpus; domain->vcpus = NULL; domain->cur_mem = ((unsigned long long)domaininfo[i].tot_pages) |