Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp996634rdb; Wed, 1 Nov 2023 08:32:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbvENhEoRmX6fs+Xo9yHJHrB4TzzKn40lEcgs7HJDlayfB2P70Utri2BxsLJ7T/RSB7b/B X-Received: by 2002:a17:902:d50b:b0:1cc:38e6:f097 with SMTP id b11-20020a170902d50b00b001cc38e6f097mr7726858plg.7.1698852776161; Wed, 01 Nov 2023 08:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698852776; cv=none; d=google.com; s=arc-20160816; b=CpZj/xXf+TyQky+nZEbry643otl/FcBDU7ojJ/6LFgnG9vSQXAa9HGWoi44WUS6V/M aINssGxSwz+2cu3jDOZHFqpSzOLj27VyrsC4iDFEtuo0fEdIE9cRmZ0zaTPe6FXaUHYD UGD8iDvXbjj79sFsPMILRHItPaR1N/IlMUAUlNJpwAqSOqlhmJmXYZT1mJKEeeo1VQbk dyMtN/6GxROp7gldTthKkP2BvuqzMI3iTXoYCqWx9cDgUUL0VXzJUIU1aoIl82immIFN gBehLemtg6Su36DxaSfttHsA+eAvr6dqd4BdoCRTElgpSXxgJgsSmF7Z31orZlPHq1fm XgcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vcCEUkBWxVVVtdlOMG0APDLxA9A2FXAb3KHpbe9d4OQ=; fh=bkiT0m2nDSwOiS0tXX/alW1oLaKci0q7aS8wY29DT0Q=; b=CwOlokaH7ghSzMPjRa+i41qRS0LGf/6BfV2ypkiW+DGwHuB7vtakqPRhP/36QXWjX6 zJRStJOOBlgWzTw6PerqldBfZvAPFK6BCTHguOgYdYII9uvqXk+oeoE3mAkOmD3gI8AE FHq00y1xmvYtQeEvG0uViBpMM9lvpfAzbdlETHxWTYuuT5AYNdMcFkb3cgilxf+Zywq7 7edmTRCZaXvtaFWifpsoC4teBPXAaPz3vCFSENIPwckwF+rmifg/EW6TMPdcQ8Q/aT0Z guYaBnnAc3wywJoulDYoqrmcdh5Qeebh8oYTmhpKSTuLE54pEcZK04f3cPwnhdafU1Hm bDMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=m29xXNzC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o17-20020a170903211100b001bbfbe6bf3esi3066921ple.504.2023.11.01.08.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 08:32:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=m29xXNzC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id EA6CC8057E39; Wed, 1 Nov 2023 08:32:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234315AbjKAPcx (ORCPT + 99 others); Wed, 1 Nov 2023 11:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234194AbjKAPcv (ORCPT ); Wed, 1 Nov 2023 11:32:51 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42AD4A6; Wed, 1 Nov 2023 08:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698852765; x=1730388765; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2nyEdm6cgXtLmEHT90SMnCtukFAW1r//JISNY6vr7Ro=; b=m29xXNzC23ELD9bDN5WB28icmxbBpim6FIAqyeYfY77a7twZkqaLo1cj gytGCyK4IHtJlD/EC6NuDt0IeH7Y7ZKD4UV7lJtOwpoaMnXAQZZfiF83f Z8P3LwF8l68VgZ8UQb2GJP6qLOt0/9rHHvtuQCLNTEZmTF4bcKyonAHMW nUI6QJVvLMluaCpKwa9CDDl50KrZR7f3pd5H+OgXsKE1/lxEJpSVdKaEY 9SGQnCrmjDYo6H43OZsiujL54t8WNRp5KOLUcmAepih5rBtGQl60hlX4x R497Gn6i5O3ejePEAQhkJtnfZjZb2Uor5xPJ56XpUNriCiZ2lOheKt1Fm A==; X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="474758865" X-IronPort-AV: E=Sophos;i="6.03,268,1694761200"; d="scan'208";a="474758865" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2023 08:32:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,268,1694761200"; d="scan'208";a="2207680" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmviesa002.fm.intel.com with ESMTP; 01 Nov 2023 08:32:35 -0700 Date: Wed, 1 Nov 2023 23:31:10 +0800 From: Xu Yilun To: Sean Christopherson Cc: Paolo Bonzini , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexander Viro , Christian Brauner , "Matthew Wilcox (Oracle)" , Andrew Morton , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xiaoyao Li , Xu Yilun , Chao Peng , Fuad Tabba , Jarkko Sakkinen , Anish Moorthy , David Matlack , Yu Zhang , Isaku Yamahata , =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , Vlastimil Babka , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" Subject: Re: [PATCH v13 03/35] KVM: Use gfn instead of hva for mmu_notifier_retry Message-ID: References: <20231027182217.3615211-1-seanjc@google.com> <20231027182217.3615211-4-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027182217.3615211-4-seanjc@google.com> X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 08:32:55 -0700 (PDT) On Fri, Oct 27, 2023 at 11:21:45AM -0700, Sean Christopherson wrote: > From: Chao Peng > > Currently in mmu_notifier invalidate path, hva range is recorded and > then checked against by mmu_notifier_retry_hva() in the page fault ^ should be mmu_invalidate_retry_hva(). Besides this, Reviewed-by: Xu Yilun Thanks