From patchwork Mon Sep 25 10:49:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9969667 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 537C5602D8 for ; Mon, 25 Sep 2017 10:52:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40E0628BAA for ; Mon, 25 Sep 2017 10:52:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3562A28C73; Mon, 25 Sep 2017 10:52:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 92A3E28C66 for ; Mon, 25 Sep 2017 10:52:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwQx0-0006kO-83; Mon, 25 Sep 2017 10:49:22 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwQwy-0006kI-Cv for xen-devel@lists.xenproject.org; Mon, 25 Sep 2017 10:49:20 +0000 Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id CF/70-03093-F2FD8C95; Mon, 25 Sep 2017 10:49:19 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHLMWRWlGSWpSXmKPExsXitHSDva7e/RO RBmva+Sy+b5nM5MDocfjDFZYAxijWzLyk/IoE1ox7bZdYCn5zVWzbOYW9gfEUZxcjJ4eEgL/E pq6pjCA2m4CyxM/OXjYQW0RAT6LpwHOwOLNAnsTjVa1gcWEBG4l/1ycwg9gsAqoSh/5OYwKxe QUsJNafuMgOMVNeYlfbRVYQW0hAQaJj+jGoGkGJkzOfsEDMlJA4+OIF8wRG7llIUrOQpBYwMq 1iVC9OLSpLLdK11EsqykzPKMlNzMzRNTQw08tNLS5OTE/NSUwq1kvOz93ECAwFBiDYwXh3U8A hRkkOJiVR3rt8JyKF+JLyUyozEosz4otKc1KLDzHKcHAoSfDW3QPKCRalpqdWpGXmAIMSJi3B waMkwvvsLlCat7ggMbc4Mx0idYrRmOPYpst/mDg6bt79wyTEkpeflyolzhsNMkkApDSjNA9uE CxaLjHKSgnzMgKdJsRTkFqUm1mCKv+KUZyDUUmYdy3IQp7MvBK4fa+ATmECOqV3KtgpJYkIKa kGxtDp+Tcfx6a8SU+c1PreK/qjacqerZVH1osobv28cZP/p/opR5/VOiRn8OuxKIinZ3Fe/M7 S7CrEwR38WzjEt8/a/9AEqU6fL/PyXuRHHK0PENwZ92DXizfv9pcv7pfdxnFL4JDd5lm/2jY0 TXdtFXtSq3TscriTbYXLzivfj7zMqfwv9z7/ohJLcUaioRZzUXEiABqKbduRAgAA X-Env-Sender: prvs=4347d7e88=wei.liu2@citrix.com X-Msg-Ref: server-16.tower-27.messagelabs.com!1506336556!118044334!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 2752 invoked from network); 25 Sep 2017 10:49:17 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-16.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 25 Sep 2017 10:49:17 -0000 X-IronPort-AV: E=Sophos;i="5.42,435,1500940800"; d="scan'208";a="449069901" From: Wei Liu To: Xen-devel Date: Mon, 25 Sep 2017 11:49:14 +0100 Message-ID: <20170925104914.28975-1-wei.liu2@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Cc: Andrew Cooper , Wei Liu , Jan Beulich Subject: [Xen-devel] [PATCH] x86emul/test: disable pie for 64-bit builds X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP PIE may (and commonly will) result in the binary being loaded above the 4Gb boundary, which can't work with at least the VZEROUPPER compat mode test. Reported-by: Wei Liu Signed-off-by: Jan Beulich Signed-off-by: Wei Liu --- Cc: Jan Beulich Cc: Andrew Cooper With this patch, vzeroupper passes, but one other test fails. Testing SSE packed single 64-bit code sequence...[line 368] failed! --- tools/tests/x86_emulator/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/tests/x86_emulator/Makefile b/tools/tests/x86_emulator/Makefile index fd13ab53b1..819a29f731 100644 --- a/tools/tests/x86_emulator/Makefile +++ b/tools/tests/x86_emulator/Makefile @@ -76,7 +76,7 @@ $(addsuffix .c,$(SIMD)) $(addsuffix -avx.c,$(filter sse%,$(SIMD))): ln -sf simd.c $@ $(TARGET): x86_emulate.o test_x86_emulator.o - $(HOSTCC) -o $@ $^ + $(HOSTCC) $(HOSTCFLAGS) -o $@ $^ .PHONY: clean clean: @@ -98,7 +98,9 @@ asm: asm/%: asm ; -HOSTCFLAGS += $(CFLAGS_xeninclude) -I. +HOSTCFLAGS-x86_64 := +$(call cc-option-add,HOSTCFLAGS,HOSTCC,-no-pie) +HOSTCFLAGS += $(CFLAGS_xeninclude) -I. $(HOSTCFLAGS-$(XEN_COMPILE_ARCH)) x86.h := asm/x86-vendors.h asm/x86-defns.h asm/msr-index.h x86_emulate.h := x86_emulate.h x86_emulate/x86_emulate.h $(x86.h)