diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-04-05 13:00:54 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-04-05 13:00:54 +0100 |
commit | 4551775df58d42e2dcfd2a8ac4bcc713709e8b81 (patch) | |
tree | 5e10216631c44c2ec3102f85ca58646d766f46e5 /xen/common/keyhandler.c | |
parent | 2bbb3d0fe9149b302b42c98cffe3fbf1aa286548 (diff) | |
download | xen-4551775df58d42e2dcfd2a8ac4bcc713709e8b81.tar.gz xen-4551775df58d42e2dcfd2a8ac4bcc713709e8b81.tar.bz2 xen-4551775df58d42e2dcfd2a8ac4bcc713709e8b81.zip |
Remove direct cpumask_t members from struct vcpu and struct domain
The CPU masks embedded in these structures prevent NR_CPUS-independent
sizing of these structures.
Basic concept (in xen/include/cpumask.h) taken from recent Linux.
For scalability purposes, many other uses of cpumask_t should be
replaced by cpumask_var_t, particularly local variables of functions.
This implies that no functions should have by-value cpumask_t
parameters, and that the whole old cpumask interface (cpus_...())
should go away in favor of the new (cpumask_...()) one.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/keyhandler.c')
-rw-r--r-- | xen/common/keyhandler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c index d642431ba9..662d7e994e 100644 --- a/xen/common/keyhandler.c +++ b/xen/common/keyhandler.c @@ -243,7 +243,7 @@ static void dump_domains(unsigned char key) { unsigned int i; printk("General information for domain %u:\n", d->domain_id); - cpuset_print(tmpstr, sizeof(tmpstr), d->domain_dirty_cpumask); + cpuset_print(tmpstr, sizeof(tmpstr), *d->domain_dirty_cpumask); printk(" refcnt=%d dying=%d nr_pages=%d xenheap_pages=%d " "dirty_cpus=%s max_pages=%u\n", atomic_read(&d->refcnt), d->is_dying, @@ -277,9 +277,9 @@ static void dump_domains(unsigned char key) v->pause_flags, v->poll_evtchn, vcpu_info(v, evtchn_upcall_pending), vcpu_info(v, evtchn_upcall_mask)); - cpuset_print(tmpstr, sizeof(tmpstr), v->vcpu_dirty_cpumask); + cpuset_print(tmpstr, sizeof(tmpstr), *v->vcpu_dirty_cpumask); printk("dirty_cpus=%s ", tmpstr); - cpuset_print(tmpstr, sizeof(tmpstr), v->cpu_affinity); + cpuset_print(tmpstr, sizeof(tmpstr), *v->cpu_affinity); printk("cpu_affinity=%s\n", tmpstr); arch_dump_vcpu_info(v); periodic_timer_print(tmpstr, sizeof(tmpstr), v->periodic_period); |