From: Alex Williamson Subject: Re: [PATCH] Make save/restore of multiple VCPU contexts arch dependent Date: Wed, 07 Mar 2007 11:14:30 -0700 Message-ID: <1173291270.5941.205.camel@bling> References: <1173116747.5941.102.camel@bling> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1173116747.5941.102.camel@bling> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel , Hollis Blanchard List-Id: xen-devel@lists.xenproject.org On Mon, 2007-03-05 at 10:45 -0700, Alex Williamson wrote: > We need to look at how to support this on ia64, so how about making > this an architecture dependent feature for now? Not sure what powerpc > needs here, so I'm just lumping it into the old way bucket. Thanks, Keir, Did you have any objections or comments about this patch? Thanks, Alex > diff -r 3ac19fda0bc2 tools/python/xen/xend/XendDomainInfo.py > --- a/tools/python/xen/xend/XendDomainInfo.py Fri Mar 02 12:11:52 2007 +0000 > +++ b/tools/python/xen/xend/XendDomainInfo.py Mon Mar 05 10:30:22 2007 -0700 > @@ -775,13 +775,18 @@ class XendDomainInfo: > t.write('vm', self.vmpath) > > def _storeDomDetails(self): > + if arch.type == "x86": > + mp_suspend = 1 > + else: > + mp_suspend = 0 > + > to_store = { > 'domid': str(self.domid), > 'vm': self.vmpath, > 'name': self.info['name_label'], > 'console/limit': str(xoptions.get_console_limit() * 1024), > 'memory/target': str(self.info['memory_static_min'] * 1024), > - 'control/platform-feature-multiprocessor-suspend': str(1) > + 'control/platform-feature-multiprocessor-suspend': str(mp_suspend) > } > > def f(n, v): > -- Alex Williamson HP Open Source & Linux Org.