ia64/xen-unstable

changeset 11132:438ed1c4b391

[XEND] Apply the domain cpumask fully to every vcpu in the domain.

Apply the domain cpumask to each vcpu rather than mapping vcpus to
cpus in the list. This is more inline with the comments for the
cpus parameter and also allows the credit scheduler to balance
vcpus within the domain cpumask.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
author kfraser@localhost.localdomain
date Tue Aug 15 10:56:59 2006 +0100 (2006-08-15)
parents 9ced76fd7d9b
children ae71e1d92d44 5de3bc3c6297
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue Aug 15 10:47:26 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue Aug 15 10:56:59 2006 +0100
     1.3 @@ -1272,12 +1272,9 @@ class XendDomainInfo:
     1.4              # repin domain vcpus if a restricted cpus list is provided
     1.5              # this is done prior to memory allocation to aide in memory
     1.6              # distribution for NUMA systems.
     1.7 -            cpus = self.info['cpus']
     1.8 -            if cpus is not None and len(cpus) > 0:
     1.9 +            if self.info['cpus'] is not None and len(self.info['cpus']) > 0:
    1.10                  for v in range(0, self.info['max_vcpu_id']+1):
    1.11 -                    # pincpu takes a list of ints
    1.12 -                    cpu = [ int( cpus[v % len(cpus)] ) ]
    1.13 -                    xc.vcpu_setaffinity(self.domid, v, cpu)
    1.14 +                    xc.vcpu_setaffinity(self.domid, v, self.info['cpus'])
    1.15  
    1.16              # set domain maxmem in KiB
    1.17              xc.domain_setmaxmem(self.domid, self.info['maxmem'] * 1024)