[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] cpupools: Make interface more consistent


  • To: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Thu, 21 Oct 2010 07:38:09 +0200
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 20 Oct 2010 22:39:06 -0700
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ZdouFBg6t3PEGS689IVRqiANvkzYgnnN6qpug6PsKoCcnd9sEk8Wv7Bo MFF4vFRDER37KzNjosjcbrEQM3e5yni6IMzqApiUKqOVoCs+3QbzMAEOh e9eaRJ2iQ/RbW7tNS5Q+2pK9S26fXl/Fal1y+QPyGTT9sI+ikLBA0oio8 TUXQNpy+6L7wWuX4obsR56/GGg3np6+BWBP4MAFudryaTRFhLs+Ls+T6M IAwcFmGVF9Y8PiNtaSTvqIBtKbCIX;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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<george.dunlap@xxxxxxxxxxxxx>

Acked-by: juergen.gross@xxxxxxxxxxxxxx

--
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@xxxxxxxxxxxxxx
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.