From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Hmt-0003rU-QQ for qemu-devel@nongnu.org; Tue, 08 Dec 2015 07:54:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Hmn-0005IR-HN for qemu-devel@nongnu.org; Tue, 08 Dec 2015 07:54:35 -0500 Received: from mail-vk0-x22c.google.com ([2607:f8b0:400c:c05::22c]:35805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Hmn-0005Hh-Dh for qemu-devel@nongnu.org; Tue, 08 Dec 2015 07:54:29 -0500 Received: by vkha189 with SMTP id a189so10943084vkh.2 for ; Tue, 08 Dec 2015 04:54:28 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1449576535-3369-4-git-send-email-liang.z.li@intel.com> References: <1449576535-3369-1-git-send-email-liang.z.li@intel.com> <1449576535-3369-4-git-send-email-liang.z.li@intel.com> From: Peter Maydell Date: Tue, 8 Dec 2015 12:54:09 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [v3 3/3] configure: add options to config avx2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liang Li Cc: "Michael S. Tsirkin" , Juan Quintela , QEMU Developers , "Dr. David Alan Gilbert" , Stefan Hajnoczi , Amit Shah , Paolo Bonzini , Richard Henderson On 8 December 2015 at 12:08, Liang Li wrote: > Add the '--enable-avx2' & '--disable-avx2' option so as to config > the AVX2 instruction optimization. > > If '--disable-avx2' is not set, configure will detect if the compiler > can support AVX2 option, if yes, AVX2 optimization is eabled, else > disabled. Is the configure option necessary? For other things like this (eg our use of SSE2 or Altivec) we just go ahead and use the feature if the compiler supports it. When would somebody building QEMU want to disable this option? thanks -- PMM