From: Keir Fraser Subject: Re: [PATCH] i386 linux: make 32-bit PAE kernel work when built with newer gcc Date: Fri, 17 Mar 2006 13:24:40 +0000 Message-ID: <69215fcfa5e19a2b362ff85e79befa62@cl.cam.ac.uk> References: <4415AE7C.76F0.0078.0@novell.com> <441AAD1E.76F0.0078.0@novell.com> <107e12b20452b34c59a79771f686802d@cl.cam.ac.uk> <441AB993.76F0.0078.0@novell.com> 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: <441AB993.76F0.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 17 Mar 2006, at 12:28, Jan Beulich wrote: > Indeed, then this should be needed on native, too. I have to admit that > I hadn't read about x86 processors using speculative writes (Intel's > SDM, > Vol 3, section 7.2.2 clearly doesn't say anything like that, and AMD > doesn't > seem to have references to such behavior in their SDM either). It wouldn't be described there since the effect of this behaviour is only seen on the bus, but not visible to programmers. From the p.o.v of the programmer, stores will always be seen by software to happen in order and no earlier than previous loads. Hence no serialising LOCK prefix needed in spin_unlock(). So actually executing a store speculatively would be both bizarre and illegal anyway on x86. Will you send the patch to the appropriate person for it to be committed to native? -- Keir