Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2918959rdh; Mon, 30 Oct 2023 11:20:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUSuGuKyunVei68UR4uKYDj27HbEFfCYYzAEXLbro+472BofPmccTRHPSSiunuEJTWstks X-Received: by 2002:a05:6a00:178e:b0:6b8:f7ed:4deb with SMTP id s14-20020a056a00178e00b006b8f7ed4debmr13093040pfg.13.1698690031130; Mon, 30 Oct 2023 11:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698690031; cv=none; d=google.com; s=arc-20160816; b=ivXZY3IMKq1kfSVXmdAv5w3lTmu6HnU74l3aTuFzlwpwT7je+XPby582DVCk6vo0Ae iHuhaGhnUkYFxwlmtN0NSm5K1jwsX0wapWI23LmYbNPMqzySS/X/aNyF66DmZF9WZJz8 ybGyLNVu2vfQKPUW7ZXmwrubV/6uUnOdX4SPjT/gsj+s3L7C9lK7neoo2UuG0HwK5Oi7 1nJr1seHW4gM8/m4E2ZPqpY5nySX25AQwP9e7jbjtsUkOxwTEh3in91r0ox68mYVWdKE UV/wHlaz8sqXuGxltOL8aM3VliTVKVj3ptOqlUFr+iCeKDscL6Uk+5O/N3HnN//MpZxN S3jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EYDArYAPbuwvLuQnLMgYzD5G3hQJ3JuyTKb70j8k5kM=; fh=qdyjXyB1NmbWuUvP2GQHevOARl2q6dCcNPNdvYweWg0=; b=zENaY6/ZyGAdfVIqIKebaKPJGAmD0XlgMZ+ctMT3AM7DwnYTXCZ4aDz262kHztbQf/ IJJY9P3TGjdtW06PVUhDbGCbBlpquMd/7pG2Ue8xW6/QWQMTVx5t99IHHNjy/M+LSt3W SdksyKz6Ni7sJIXAxut5R8eIAE5r2yLbGQOJYlmwHHy7UZGoDeovDkJ+12qD+oiLEuuy lcvD3KF1kdquKSv7dXv2FWVhF2fstIjv55+gJIyZ5CfQ1oMmeiaPPIhlV8/4asqoeqLQ ONBeVUr/YyjoYBfrAG3IT9CYpiIF000lhuPoSIX3z37Z7gTPPJS/c3LFIRxCZNK5ffHY xguw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=vMBjNLJL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id q12-20020aa7982c000000b006933c57195esi5128056pfl.399.2023.10.30.11.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 11:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=vMBjNLJL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9203A80505E3; Mon, 30 Oct 2023 11:20:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231371AbjJ3SUT (ORCPT + 99 others); Mon, 30 Oct 2023 14:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231709AbjJ3SUR (ORCPT ); Mon, 30 Oct 2023 14:20:17 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCF22C0 for ; Mon, 30 Oct 2023 11:20:14 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5079f6efd64so6713041e87.2 for ; Mon, 30 Oct 2023 11:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698690013; x=1699294813; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EYDArYAPbuwvLuQnLMgYzD5G3hQJ3JuyTKb70j8k5kM=; b=vMBjNLJLnNwZ92n0kiLKy/KDvv6bmRWazPVY7EzuCAXijQXOd/L6nvrX2ZWXjw+lNq 4G5yJaJPhMqxsSmWmQroKSm+2R3tkccCRs0o978wCj0l5sy5+qU6vjM8CCHZZW53vydq p5Q03CC8DatEWTV07ALKn+wiFR2o2FRnMzJbqLuMgJ2Ub5QuR13k3/n1s73F50qjfkJW jYiv09MpMPkZEbaNGpQQ9n6vWpNk1OHs0sffooFU3t8jPASRTjzGdPCT9bTwlS4yKF0n 0udHFnJONG3fQytXR4K5Q+c/1vSUxumJ6xHiwhVUu+7gs9M3D3ejbpd+PQJLXSO5jHDJ abyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698690013; x=1699294813; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EYDArYAPbuwvLuQnLMgYzD5G3hQJ3JuyTKb70j8k5kM=; b=YUQGitKkd1FH9+iwXAvofhRN5FvPqr3ZKwTVGDObBKYKjtB+/tkVmGpef7CSbgc4DC z04ET7rs5AoTXNKRBFOrIGB0uhsK3DaDNhNwQ4BljMdYnMRYH04zXuhoVsn4TU9kBwo4 A1qpUv9T6w8vcnVC6/6KAG6naCBb8QeyWNSpj9FNhuWZZ1bMWIFEw8/J6U0sFuYIdGUs cpvy6CUG9rfqhUFwKsYOzPYgepvIdi1yPto3haAq2sUbNZlKIJzDDeUyhrWA7n3RjWra UE3Zul9pKOOBVePATa3AqBjrX5uKXmSUba6Hd+ipm2S7WN6PyO80qrbF2SgQ92feMtCD C0HQ== X-Gm-Message-State: AOJu0YxAoVD+9/wCvpDHwm3n72axZd1rmdiKcLSuBtolbsLESyWa4/8+ Ex2f40zgwF/99XAyQ6BCdNl1JM7SmfV1FHUhP+xbtQ== X-Received: by 2002:a05:6512:10cb:b0:507:aaa9:b080 with SMTP id k11-20020a05651210cb00b00507aaa9b080mr9836391lfg.33.1698690012887; Mon, 30 Oct 2023 11:20:12 -0700 (PDT) MIME-Version: 1.0 References: <20231027182217.3615211-1-seanjc@google.com> <20231027182217.3615211-4-seanjc@google.com> In-Reply-To: From: David Matlack Date: Mon, 30 Oct 2023 11:19:43 -0700 Message-ID: Subject: Re: [PATCH v13 03/35] KVM: Use gfn instead of hva for mmu_notifier_retry 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 , Yu Zhang , Isaku Yamahata , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , Vlastimil Babka , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Mon, 30 Oct 2023 11:20:28 -0700 (PDT) On Mon, Oct 30, 2023 at 9:53=E2=80=AFAM David Matlack = wrote: > > On 2023-10-27 11:21 AM, Sean Christopherson wrote: > > From: Chao Peng > > > > +void kvm_mmu_invalidate_range_add(struct kvm *kvm, gfn_t start, gfn_t = end); > > What is the reason to separate range_add() from begin()? Nevermind, I see how it's needed in kvm_mmu_unmap_gfn_range().