[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: [Xen-staging] [xen-unstable] Added some more fields to host_cpu.
On Fri, 2007-03-02 at 13:39 -0700, Alex Williamson wrote: > > On ia64, dom0 doesn't automatically get vcpus for each physical cpu, > so the first problem is that we're not going to have a /proc/cpuinfo > entry for every cpu in self.cpus.keys. I think it's likely x86 could > run into this problem too if a cpu was hotplugged or booted with the > dom0_max_vcpus options. Not sure if this affects us. > The second problem is that /proc/cpuinfo fields are very architecture > specific. I'd suggest importing arch and having separate cases for x86, > ia64, and powerpc. For ia64, think the most appropriate mapping would > be: > > self.cpus[u].update( > { 'host' : self.uuid, > 'features' : cpu_features, > 'speed' : int(float(cpuinfo[0]['cpu MHz'])), > 'vendor' : cpuinfo[0]['vendor'], > 'modelname': cpuinfo[0]['family'], > 'stepping' : cpuinfo[0]['model'], > 'flags' : cpuinfo[0]['features'], > }) This absolutely does. Ewan, what are you trying to do here, and could you please revert it until we figure out a solution that will work? -- Hollis Blanchard IBM Linux Technology Center _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |