From: John Levon Subject: Re: vcpu-set and save/restore/reboot Date: Sat, 28 Apr 2007 01:28:52 +0100 Message-ID: <20070428002852.GA6690@totally.trollied.org.uk> References: <20070427172343.GA23955@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, Apr 27, 2007 at 07:41:30PM +0100, Keir Fraser wrote: > > We've noticed in 3.0.4 (and it seems to be intentional) that if you > > vcpu-set a domain to fewer CPUs, when it restarts (restore or reboot), > > only those VCPUs are present in xenstore or the domain. This seems > > strange at least? It's unfortunate since it means the domain can never > > get those VCPUs back. > > Max_vcpus should still be set to its original build-time value, so the guest > kernel should still be aware that the maximal number of vcpus *could* exist. > And the nodes should still exist in xenstore, but marked offline. This is not the case with 3.0.4 at least. When I reboot a domain I don't see any entries past the ones we set. I haven't had a chance to test 3.0.5 yet, but it seems to have similar code. regards john