All of lore.kernel.org
 help / color / mirror / Atom feed
* tools/libxc/xc_cpuid_x86.c:cpuid()'s inline asm
@ 2011-12-02  8:54 Jan Beulich
  2011-12-02  6:02 ` Keir Fraser
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Beulich @ 2011-12-02  8:54 UTC (permalink / raw)
  To: Keir Fraser; +Cc: Olaf Hering, xen-devel@lists.xensource.com

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-12-02 16:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-02  8:54 tools/libxc/xc_cpuid_x86.c:cpuid()'s inline asm Jan Beulich
2011-12-02  6:02 ` Keir Fraser
2011-12-02 14:20   ` Jan Beulich
2011-12-02 15:26   ` Olaf Hering
2011-12-02  8:40     ` Keir Fraser
2011-12-02 16:47   ` Olaf Hering
2011-12-02 10:08     ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.