From patchwork Tue Aug 23 22:05:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 599487 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp2739821mae; Tue, 23 Aug 2022 15:12:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7W8kQ0DHO2LX8HQVx5p/YwE2u+3js5Txj4QJ57IYqk7rEWL8vROYNoLLqUjggLdowQVEat X-Received: by 2002:a05:622a:48:b0:344:625e:6c46 with SMTP id y8-20020a05622a004800b00344625e6c46mr21590038qtw.28.1661292765709; Tue, 23 Aug 2022 15:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661292765; cv=none; d=google.com; s=arc-20160816; b=IQoo7OXGmRZekj5S+6XGS0J902GGVpPDkcKCQCMMhDaKbT1ubkHRJnWwffWaHg40Up 4yUq3aHVkTN360rjCAzbCi7Gp5/nlOZnAoqZIvGO8sVoK6E/KLsXW9Lb+swFaBXTGXhE 7R83fkZfIlljZqD4S525nXEtOoopDwdsLZ4aRMdSuDrpp+Ax93Z3VBN1MD7c+9wVdEIb wQBnf9n15j+jZbwIUdbcCwrux3NDOzBxXBvKz80HQdopcvT0mTQyeiEUwUhkxleMRQl2 APPTCXGeKg7zE/kailJxgwqc9oN/NWtire7j3WDi5a7JXys6AONR4Es3+AohHILsP0bR JYnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HHNtzSSJtX30aB1753TWle01U0aOKhRaC897K6yvm6M=; b=zMexGi1fL6CpoZ0QStOEQmTSoDkmpV6XBX/mEPYDpO/swQBlWd/IeYC8MC2rRzU1SG wT+VXJeNPx80xGJy5b7gENM+UDy03lhTvekdLHyyki9esGzDnTalt7gxV86YVCbzoaQU 8vVaHt+94Snp/VppPvSusYhLo1lxyf9B0iD2mhK2jvm4SBYzlep3c2jtNOav2YDznDls wdw74PDX4sz30wuunj1IZIM+NT2m7/XBR9oH0UCU4+kCrOT1sHfMhdYSY4Ez+pgHwve8 Y5+o/WWD/BGwuHGj09O9jD6SbMrCSxq5Xxdy1c8vHQKb12zU9pDvBm5O8pGQ4W/4m3er bd9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=En4LPLes; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m1-20020a05620a290100b006b8fd9a8795si7924541qkp.580.2022.08.23.15.12.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Aug 2022 15:12:45 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=En4LPLes; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQc8b-0002vF-8r for patch@linaro.org; Tue, 23 Aug 2022 18:12:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQc1z-0008MU-DF for qemu-devel@nongnu.org; Tue, 23 Aug 2022 18:05:55 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:43928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQc1x-0001QS-S6 for qemu-devel@nongnu.org; Tue, 23 Aug 2022 18:05:55 -0400 Received: by mail-pl1-x631.google.com with SMTP id 20so14013018plo.10 for ; Tue, 23 Aug 2022 15:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=HHNtzSSJtX30aB1753TWle01U0aOKhRaC897K6yvm6M=; b=En4LPLesOggHoQwnB9qGRYYiS0yNvrYUHdD3JufEjSwTyHMQpkAd1kwJPTBBIVQeVX YGt+uydHtoNIBRr4sOhp6eFNN4Inh/Y6Q/WE3+/6KnighuMp9FkrZkqu+foykEWgidSY 8Mg+yia4yyKmcM/j6KDtyThUHvt279t8STLZrUy8PJXasgVzdBLRHlZMGiGbqn3oF4wF EE60OyDGu3QMZl22jId6lmz+QgGzrmgF3y/RUNo2lt/9hD3f1z+ASOPL+Ne3N4JO2gev +02CY2iyd9r755lCyuVZy9uENNk5/n6TMPxwzVZq7yYEvCBnQiAxqsHXXxIxVMhjxq1h 6HNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=HHNtzSSJtX30aB1753TWle01U0aOKhRaC897K6yvm6M=; b=5piTSELva9nuvVISdsaYjFMs1FBo3aUxt62ZGIYQpszRHVKRbqgb/gWYlV/KzrWWJp VrDfAa5PMpFnf5o+r+4uXl0ylN+HNPmzeEOCf+aRV2ySQVz78pRsvqPJXkvI8RevyYFH e7YDkj6Eux53quOy4+7SChGf8P+PbeaqiNR9sn+YVvAVgBtu0IC2YfZEhONjzWZuZCN0 dVMx3aBJv0fMSbEPdg3M7thYi8dQ+3J26kXMKK7MThNYhqQtPUu0/zr0c7rYUnRkU7VN Dtz3nhLbzX/B8q1WWMiuQQdfCoCTgVLnBECiaVoUdgsuGodHvi5NY/N+7rLIi+vBll6m VecA== X-Gm-Message-State: ACgBeo0mTv7R1uR84SlmBuFjBwHr67xv6MXgn8qY5j1sR1lDHUjT2UhO VjHm2EJZfSnFR5WcUeI7iaUGI+s6TiV+JQ== X-Received: by 2002:a17:903:22d1:b0:172:f11f:de35 with SMTP id y17-20020a17090322d100b00172f11fde35mr9030208plg.150.1661292351512; Tue, 23 Aug 2022 15:05:51 -0700 (PDT) Received: from stoup.. ([2602:47:d49d:ec01:46f9:77b4:ec0a:c2d9]) by smtp.gmail.com with ESMTPSA id n12-20020a170902f60c00b0017292073839sm11020974plg.178.2022.08.23.15.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 15:05:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: iii@linux.ibm.com, laurent@vivier.eu, alex.bennee@linaro.org Subject: [PATCH v7 06/20] tests/tcg/i386: Move smc_code2 to an executable section Date: Tue, 23 Aug 2022 15:05:28 -0700 Message-Id: <20220823220542.1993395-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220823220542.1993395-1-richard.henderson@linaro.org> References: <20220823220542.1993395-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We're about to start validating PAGE_EXEC, which means that we've got to put this code into a section that is both writable and executable. Note that this test did not run on hardware beforehand either. Acked-by: Ilya Leoshkevich Tested-by: Ilya Leoshkevich Signed-off-by: Richard Henderson --- tests/tcg/i386/test-i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index ac8d5a3c1f..e6b308a2c0 100644 --- a/tests/tcg/i386/test-i386.c +++ b/tests/tcg/i386/test-i386.c @@ -1998,7 +1998,7 @@ uint8_t code[] = { 0xc3, /* ret */ }; -asm(".section \".data\"\n" +asm(".section \".data_x\",\"awx\"\n" "smc_code2:\n" "movl 4(%esp), %eax\n" "movl %eax, smc_patch_addr2 + 1\n"