From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Westfall Subject: fma4/avx under xen Date: Wed, 2 May 2012 11:54:02 -0700 Message-ID: <20120502185402.GV5985@surrealistic.net> 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.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi I wanted to bring this to your attention https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/956051 The summary is that when gcc compiles something with -mfma4 it also enables the use of the avx instruction set. Since by default xen disables avx it leads to invalid opcodes. This ends up being kinda nasty with the multiarch glibc since its doing stuff like (HAS_FMA4 ? run_fma4_func() : (HAS_AVX ? run_avx_func() : run_func())) run_fma4_func() can end up bombing out from the invalid opcode when run under xen. Its not clear to me if xen should be filtering fma4 as part of its avx filter or if gcc should not assume avx support when compiling with -mfma4. thoughts? thanks jim