From: "Jan Beulich" Subject: tools/libxc/xc_cpuid_x86.c:cpuid()'s inline asm Date: Fri, 02 Dec 2011 08:54:34 +0000 Message-ID: <4ED8A05A0200007800065020@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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: Keir Fraser Cc: Olaf Hering , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Keir, do you recall what it was that 20976:f8692cc67d67 was supposed to fix? The code is clearly wrong now on x86-64 - inline asm that uses push/pop (or other stack pointer manipulation instructions) and memory accesses that may reference the stack (even if not through %rsp) can't be expected to work without -mno-red-zone. The question is whether to use that command line option, or whether to correct the inline assembly (besides the purpose of your change, I also wonder why this isn't coded the obvious way, with rBX and rDX explicitly named in the constraints - on 32-bit this may be to reduce register pressure, but on 64-bit it's entirely unclear). Thanks, Jan