From patchwork Mon Sep 25 10:06:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 9969571 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 4BD84602D8 for ; Mon, 25 Sep 2017 10:09:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3ABC928A71 for ; Mon, 25 Sep 2017 10:09:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3904628AD1; Mon, 25 Sep 2017 10:09:40 +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 2EC5F28A71 for ; Mon, 25 Sep 2017 10:09:38 +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 1dwQHo-0003nt-Es; Mon, 25 Sep 2017 10:06:48 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwQHn-0003nn-KV for xen-devel@lists.xenproject.org; Mon, 25 Sep 2017 10:06:47 +0000 Received: from [85.158.143.35] by server-9.bemta-6.messagelabs.com id 13/1F-03422-635D8C95; Mon, 25 Sep 2017 10:06:46 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRWlGSWpSXmKPExsXS6fjDS9fs6ol Ig9lHFCy+b5nM5MDocfjDFZYAxijWzLyk/IoE1owbF64wFUxirehaOZO5gfEQSxcjJ4eQQJ7E qhUL2UBsXgE7iTXPV7CC2BIChhKnF94Eq2ERUJVYdWITI4jNJqAu0fZsO1ANB4eIgIHEuaNJI GFmgUCJW/dngJUIC9hI/Nj/mBFiPNDIj9sZQcp5BQQl/u4QhijXknj46xYLhK0tsWzha2aQEm YBaYnl/zgmMPLOQmiYhaRhFpKGWQgNCxhZVjFqFKcWlaUW6Rob6SUVZaZnlOQmZuboGhqY6eW mFhcnpqfmJCYV6yXn525iBIYYAxDsYDy9LvAQoyQHk5Io712+E5FCfEn5KZUZicUZ8UWlOanF hxhlODiUJHjXXQbKCRalpqdWpGXmAIMdJi3BwaMkwnsKJM1bXJCYW5yZDpE6xWjJcWzT5T9MH DceXgeSHTfv/mESYsnLz0uVEuc9DdIgANKQUZoHNw4WkZcYZaWEeRmBDhTiKUgtys0sQZV/xS jOwagkzHseZApPZl4J3NZXQAcxAR3UOxXsoJJEhJRUA+PKyTf23RM5emfZKuGvnRelPRn5xA8 o6L3fkh0aqubGdorviN3bxG6OiF27NGxeH9keueLs8/z4qWERd7yDxbe5HbtRInFD+6jjxlOl Vo2TLHWf1Rw61MBodHPq1WPlxzx8jsaK/1XpnPf0k+cTw8qaYIOPSTqnQzsXdKzwvPvJIpvlq PnDe4JKLMUZiYZazEXFiQDBR2nCwwIAAA== X-Env-Sender: JBeulich@suse.com X-Msg-Ref: server-9.tower-21.messagelabs.com!1506334004!84317601!1 X-Originating-IP: [137.65.248.74] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 37761 invoked from network); 25 Sep 2017 10:06:46 -0000 Received: from prv-mh.provo.novell.com (HELO prv-mh.provo.novell.com) (137.65.248.74) by server-9.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 25 Sep 2017 10:06:46 -0000 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Mon, 25 Sep 2017 04:06:43 -0600 Message-Id: <59C8F151020000780017F4BB@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.2 Date: Mon, 25 Sep 2017 04:06:41 -0600 From: "Jan Beulich" To: "xen-devel" References: <59C8F151020000780017F4BB@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Disposition: inline Cc: Andrew Cooper , Wei Liu 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 --- a/tools/tests/x86_emulator/Makefile +++ b/tools/tests/x86_emulator/Makefile @@ -98,7 +98,8 @@ asm: asm/%: asm ; -HOSTCFLAGS += $(CFLAGS_xeninclude) -I. +HOSTCFLAGS-x86_64 := -fno-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)