From: Keir Fraser Subject: Re: [PATCH] add support for XCHG instruction accessingAPIC Date: Wed, 5 Apr 2006 19:06:53 +0100 Message-ID: <442891bd56cb66190c9a7b39ba8ef69d@cl.cam.ac.uk> References: Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; 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: "Jiang, Yunhong" Cc: xen-devel@lists.xensource.com, Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org On 5 Apr 2006, at 17:50, Jiang, Yunhong wrote: > I think the reason we don't take any lock here is; we are sure this is > just used for local APIC range. However, if in future someone adds > another MMIO range or if IOAPIC is accessed with XCHG (will this > happen?), this may have potential issue. > > So I'd suggest adding comments that we didn't take any lock here, or > add a check to make sure the range is on local APIC range. There is a comment in the patch I applied, and that section of code is specific to LAPIC handling. -- Keir