Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 02E07EB64DD for ; Tue, 1 Aug 2023 03:38:43 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQgDJ-0007n8-9P; Mon, 31 Jul 2023 23:38:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQgDH-0007mv-Sy; Mon, 31 Jul 2023 23:38:23 -0400 Received: from out30-124.freemail.mail.aliyun.com ([115.124.30.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQgDF-0003B0-Id; Mon, 31 Jul 2023 23:38:23 -0400 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R131e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=ay29a033018045176; MF=zhiwei_liu@linux.alibaba.com; NM=1; PH=DS; RN=8; SR=0; TI=SMTPD_---0VokMO1u_1690861084; Received: from 30.13.152.36(mailfrom:zhiwei_liu@linux.alibaba.com fp:SMTPD_---0VokMO1u_1690861084) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 11:38:05 +0800 Message-ID: Date: Tue, 1 Aug 2023 11:37:27 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] target/riscv: Fix page_check_range use in fault-only-first To: Richard Henderson , qemu-devel@nongnu.org Cc: Alistair.Francis@wdc.com, palmer@dabbelt.com, bin.meng@windriver.com, liweiwei@iscas.ac.cn, dbarboza@ventanamicro.com, qemu-riscv@nongnu.org References: <20230729031618.821-1-zhiwei_liu@linux.alibaba.com> <4c8751cf-7e27-a5dc-e7e1-2074c2d5f09d@linaro.org> Content-Language: en-US From: LIU Zhiwei In-Reply-To: <4c8751cf-7e27-a5dc-e7e1-2074c2d5f09d@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=115.124.30.124; envelope-from=zhiwei_liu@linux.alibaba.com; helo=out30-124.freemail.mail.aliyun.com X-Spam_score_int: -99 X-Spam_score: -10.0 X-Spam_bar: ---------- X-Spam_report: (-10.0 / 5.0 requ) BAYES_00=-1.9, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-0.101, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 2023/7/30 5:18, Richard Henderson wrote: > On 7/28/23 20:16, LIU Zhiwei wrote: >> Commit bef6f008b98(accel/tcg: Return bool from page_check_range) >> converts >> integer return value to bool type. However, it wrongly converted the use >> of the API in riscv fault-only-first, where page_check_range < = 0, >> should >> be converted to !page_check_range. >> >> Signed-off-by: LIU Zhiwei >> --- >>   target/riscv/vector_helper.c | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) > > As far as it goes, > > Reviewed-by: Richard Henderson > > though the test will never fail, because tlb_vaddr_to_host just > succeeded. It fails one test case in linux-user mode, where tlb_vaddr_to_host always succeeded. Zhiwei > > > r~