Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50DB9C07E99 for ; Fri, 9 Jul 2021 15:05:28 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F24CC613BE for ; Fri, 9 Jul 2021 15:05:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F24CC613BE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:55650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1s4F-0006OQ-2O for qemu-devel@archiver.kernel.org; Fri, 09 Jul 2021 11:05:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1s2x-0003qg-1k for qemu-devel@nongnu.org; Fri, 09 Jul 2021 11:04:07 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:34556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1s2u-0003Rf-Ly for qemu-devel@nongnu.org; Fri, 09 Jul 2021 11:04:06 -0400 Received: by mail-pg1-x533.google.com with SMTP id 62so10262904pgf.1 for ; Fri, 09 Jul 2021 08:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=55376FlShbfPcsZv7XMqyB5HRDZVzDcZP8T+42ckEaQ=; b=SRfce5GCESRAhIEBw38GYX/oz9kqXlyp2nRm0XlX99y58FZNgM0U9uvdxpE1K059RL 0thhLhSt4GLsu+8bSs4wB7VwI2raGyr8jYYp+I8t6NslaimZuLyIH806ejSleniU/ini rLQyYtGzSmN5gE7lSb0ijbGxnRjbCp11GSRUNppXbMkYZaaGf+zCYxXHS0aFLgSbR1Dq qf6XJM5P+/S9A45eZ2u6KcqLw3BtNKUuTGH7yiom5ei0sH3M0dP/ggGf+lggQhMTovRD QiHLydPfdwbG54VPyEnsM/CmypbpJay2yucQyA2kNJbu5UbvujLa09oOWFpYGzLnicDw QjKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=55376FlShbfPcsZv7XMqyB5HRDZVzDcZP8T+42ckEaQ=; b=RiJ5fNc2m6uOUDSddwGtPzk8T8nqhZLmWwXrv/z/ZMCFfUKQRyafkqZHanP+WKoLIa EjGJ6A9QEe6P+l7Nhh7g0ANqb6BKI3nNiY2MSNBwejDb3n7lC3C8Uy3obrZSN1z+0uz5 lKNo7lGV2A1cnzfpc97HpHWG1McKdACqosZYFconD4YM+bUF8UJw1sP5gSPWwHEpmgV4 RibHp9+6+V81tOk+Fi8leyYc/88hR3yyghq0bQvwp6qLVbjWhEfgO4+JPf/j7E+653cW mQ+PvWz6I//KBIX8r6VbX3kGuBHUFIu3wLf6s5FCowTFrtbS1CMiKdHp//aOHdb3B/Tm RzZg== X-Gm-Message-State: AOAM5304kUAWa885VEoI7IkJQjrVVIBHfOskMPhiyuhnY3YqV/dWMZgL KUusHoZbl8yVOjZEkUHdMbPpOA== X-Google-Smtp-Source: ABdhPJyIymF4Xk0eJOMIx4G9IpjcMbZxj9523gzOGc29H++NmUEjNxuUEEQZmu48Bga8WM2Z8pUzxA== X-Received: by 2002:a63:fe51:: with SMTP id x17mr38320110pgj.58.1625843042966; Fri, 09 Jul 2021 08:04:02 -0700 (PDT) Received: from [192.168.1.11] ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id j16sm7671185pgh.69.2021.07.09.08.04.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jul 2021 08:04:02 -0700 (PDT) Subject: Re: [PATCH v3 26/40] tests/tcg: make test-mmap a little less aggressive To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , qemu-devel@nongnu.org References: <20210709143005.1554-1-alex.bennee@linaro.org> <20210709143005.1554-27-alex.bennee@linaro.org> From: Richard Henderson Message-ID: <82e42c90-7152-4cea-948a-71fede1060ec@linaro.org> Date: Fri, 9 Jul 2021 08:04:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210709143005.1554-27-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x533.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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, pbonzini@redhat.com, f4bug@amsat.org, robhenry@microsoft.com, aaron@os.amperecomputing.com, mahmoudabdalghany@outlook.com, minyihh@uci.edu, cota@braap.org, stefanha@redhat.com, crosa@redhat.com, kuhn.chenqun@huawei.com, ma.mandourr@gmail.com, Taylor Simpson , aurelien@aurel32.net Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 7/9/21 7:29 AM, Alex Bennée wrote: > The check_aligned_anonymous_unfixed_mmaps and > check_aligned_anonymous_unfixed_colliding_mmaps do a lot of mmap's and > copying of data. This is especially unfriendly to targets like hexagon > which have quite large pages and need to do sanity checks on each > memory access. > > While we are at it clean-up the white space and style issues from the > legacy code. As we no longer do quite so much needless memory access > we can also remove the hexagon timeout hack. > > Signed-off-by: Alex Bennée > > --- > v3 > - style and whitespace cleanups, reduce loop even further. > - remove hexagon timeout hack > --- > tests/tcg/multiarch/test-mmap.c | 208 +++++++++++++++--------------- > tests/tcg/hexagon/Makefile.target | 9 -- > 2 files changed, 104 insertions(+), 113 deletions(-) Reviewed-by: Richard Henderson r~