From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Egger" Subject: Re: [PATCH] xen: cache current vcpu Date: Mon, 29 Oct 2007 20:23:20 +0200 Message-ID: <200710291923.20740.Christoph.Egger@amd.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I thought, the changes to register_guest_nmi_callback() and=20 do_set_trap_table() make some sense. The rest is just for consistency. Take what you like, leave the rest :) Christoph On Monday 29 October 2007 18:23:09 Keir Fraser wrote: > Gcc is quite capable of eliminating common subexpressions involving > current(), and I don't think this patch aids code readability (especially > the set_debugreg() change -- p=3D=3Dcurrent means more to me than p=3D=3D= v). > > -- Keir > > On 29/10/07 15:43, "Christoph Egger" wrote: > > Hi! > > > > Attached patch caches current vcpu. > > > > Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy