Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6277024pxv; Thu, 29 Jul 2021 10:25:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztg9nzwroOeTHmi2CvU78iIWKRxW4CUw33d3GAQ3+tZNX+W3Uqo5fu/hAcb3qOks5NK5If X-Received: by 2002:a92:7f03:: with SMTP id a3mr4518620ild.254.1627579551474; Thu, 29 Jul 2021 10:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627579551; cv=none; d=google.com; s=arc-20160816; b=ULMwOuNtpuw4M3n0ZKFQepkVjADW0CLMiVFvXY8oipUzZo5XEaveqPRZsiWHq4COp6 Fb+n9QkeBG4YZ43E3fWZ5S+QvL2LqT41XBQLts4wQvj7TBWt9G2qEvmdhjzt6vn3kr61 CLgjS3XY67TexRZ3O3YawyDTcpOCMjJbdkIYxVrVjZTfrRySfycLYaEQelplf5Dynkx5 eSgiGaQDjrS4fYllCTDO56X7GijiyR4DJmMH5n3263x/r22i59bheo6pi5uY0yWcHUyY xf70uQD1dTqP9S9AOkq6XuYIyq7rEOkfp5c4AvasyHc7CczCwmIoRNjANMx0QQQAWvEy KjhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NWUclsCNuoKzRHN0VVtJJdT/B8wW6gEtVuB7tyt8rLQ=; b=ZWoCqR2YOSTdu8vI+W4jMLTBapgnN23XMIKPAscn69UIie7Qj77OrCQSh3droG32Fp yuciJG8dUgaoFPLqGw6KVe6Fc3feaNqo/i+aTas4xHYOk5jk/lsoxBK7WkoUjdBxI9HK EjZ6aa1PZlJ03fooMoT9m1U/JQpuXXqBCIvoWh/+zPXFRcltlG2gFHct/kAHHPk8Mg1c eGRBQizbZ0e8Ykk1puk/FM9/eGnKN8kIO+YlSy+xjJHZ0ASrIeAT+m0WtVEZ2aIsmbfD z2nxJznMzY6t0hK8ej4+hT6flpW3ocmWalYM+a7C6zQkeYeSkxmVXlduiyFf7I+edD76 YaVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=h49SkWwh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si3829875ils.86.2021.07.29.10.25.39; Thu, 29 Jul 2021 10:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=h49SkWwh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229906AbhG2RYp (ORCPT + 99 others); Thu, 29 Jul 2021 13:24:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbhG2RYp (ORCPT ); Thu, 29 Jul 2021 13:24:45 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76E42C061765 for ; Thu, 29 Jul 2021 10:24:41 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id r26so12444928lfp.5 for ; Thu, 29 Jul 2021 10:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NWUclsCNuoKzRHN0VVtJJdT/B8wW6gEtVuB7tyt8rLQ=; b=h49SkWwhYpGGEq0HAv2YJOkyCtnIxNxZboW8ndPd9G+k3fjW0fMRjdxDOJDRU757L8 N6Q4ZWXMh03f4TyH8G43QlVHUE0jqig5r2iK6Kfs6EycfoqfOThKQWFsmIWjLMi2d7ML 5EFjn6xctGpsWXUKsYGIk3KQr6+yw9IyK0hNxMEk8tpt6uH3kdg+zazOSHYrw8jovmq1 rtN/6IDFLcxuDYYDJ/OnoVFt932gnYWZt7jGVHp0QxcDUD22/tAU6+yE7ggOf74SZc/0 V7G6Yx5byQkoqN6EoI917XaWmvnti26/3YpCqjiX9Ky3EEd6ptVDHumyH1aXPXu8IiVL hUBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NWUclsCNuoKzRHN0VVtJJdT/B8wW6gEtVuB7tyt8rLQ=; b=AcrgO8Btli1rfhosP6v4gQXxpugdTjbD01OfWPxJtVacjAxofil6wowxjOK+t14Wix mdc08S0AmAxZtqga2Nad5In0Jo8IHHaA3c2XaIg8INAhBiZvHz5K1/s4rjqUAKMTv2a3 X1nG5NcRc+Jx8ulbN3EcmfsAUqYwBCuYGxvovU3uULueHIH670t9yvTEl0wraOPLrnAx d5DASTP2o//mX0rm2jR9zVGV1/Akyn1ED+brfSz4+yOKSxYYQ6tFmR1pb+deJtVuIm/7 KTyLtR8/LyJglmcGvGC4FqHqj+zKlx0eMlAHyvADTWr2gNbHB46fZmdvqz41hq57t/vZ Ldhg== X-Gm-Message-State: AOAM531y0O5AWWJ1v8zeZhYVv20ERpuSR7WfijtM6xmamcDY9MDvlYHe yNcoFvPN7fTpIOj2gG1/ira1Bs/es/fvG26rnvEq3g== X-Received: by 2002:a05:6512:3ca5:: with SMTP id h37mr4714416lfv.46.1627579479513; Thu, 29 Jul 2021 10:24:39 -0700 (PDT) MIME-Version: 1.0 References: <936b00e2-1bcc-d5cc-5ae1-59f43ab5325f@redhat.com> <20210610220056.GA642297@private.email.ne.jp> <92ffcffb-74c1-1876-fe86-a47553a2aa5b@redhat.com> In-Reply-To: <92ffcffb-74c1-1876-fe86-a47553a2aa5b@redhat.com> From: David Matlack Date: Thu, 29 Jul 2021 10:24:13 -0700 Message-ID: Subject: Re: [RFC PATCH 00/10] KVM: x86/mmu: simplify argument to kvm page fault handler To: Paolo Bonzini Cc: Isaku Yamahata , Sean Christopherson , Isaku Yamahata , kvm list , LKML , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 10:17 AM Paolo Bonzini wrote: > > On 29/07/21 18:48, David Matlack wrote: > > On Thu, Jun 10, 2021 at 3:05 PM Isaku Yamahata wrote: > >> > >> Thanks for feedback. Let me respin it. > > > > Hi Isaku, > > > > I'm working on a series to plumb the memslot backing the faulting gfn > > through the page fault handling stack to avoid redundant lookups. This > > would be much cleaner to implement on top of your struct > > kvm_page_fault series than the existing code. > > > > Are you still planning to send another version of this series? Or if > > you have decided to drop it or go in a different direction? > > I can work on this and post updated patches next week. Sounds good. For the record I'm also looking at adding an per-vCPU LRU slot, which *may* obviate the need to pass around the slot. (Isaku's series is still a nice cleanup regardless.) > > Paolo >