From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Subject: Re: [PATCH] cpupools: Make interface more consistent Date: Thu, 21 Oct 2010 07:38:09 +0200 Message-ID: <4CBFD1C1.9000801@ts.fujitsu.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: 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: George Dunlap Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 10/20/10 17:49, George Dunlap wrote: > The current cpupools code interface is a bit inconsistent. This > patch addresses this by making the interaction for each > vcpu in a pool look like this: > > alloc_vdata() -- allocates and sets up vcpu data > insert_vcpu() -- the vcpu is ready to run in this pool > remove_vcpu() -- take the vcpu out of the pool > free_vdata() -- delete allocated vcpu data > > (Previously, remove_vcpu and free_vdata were combined into a "destroy > vcpu", and insert_vcpu was only called for idle vcpus.) > > This also addresses a bug in credit2 which was caused by a misunderstanding > of the cpupools interface. > > Signed-off-by: George Dunlap Acked-by: juergen.gross@ts.fujitsu.com -- Juergen Gross Principal Developer Operating Systems TSP ES&S SWE OS6 Telephone: +49 (0) 89 3222 2967 Fujitsu Technology Solutions e-mail: juergen.gross@ts.fujitsu.com Domagkstr. 28 Internet: ts.fujitsu.com D-80807 Muenchen Company details: ts.fujitsu.com/imprint.html