Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2812134pxj; Mon, 10 May 2021 11:15:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPo/NF7zHZ7xBkq2okndC7UtNEZsYi0r99xPA5T7XGVjljYv0CSMVxQS7oB2grgY7KuU4I X-Received: by 2002:a02:5b85:: with SMTP id g127mr22971767jab.80.1620670510955; Mon, 10 May 2021 11:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620670510; cv=none; d=google.com; s=arc-20160816; b=P1ANdmISlZBJuUxv+orYQGuZi0/z8B4dtl1JNDQ+ALj9ey0KzGGs6zm98luJezEPit xNVuBLe7J+BnkzkTgkLEyPrX5R5pqNc51XPKdMa+/J9lqJJThJeKSeFdsq39jm5uyjkx gfl4EOy9WwFaoLVWbRBW9LcDu05ca8pkGXCdbuIbIlTr3pEHntH4Va38aBGMJaqZTqmE 50k2zg/Msh2/af7oMAKlW9KUTskzY1Y5qMBdf2zjR4pzmJWYlDfkBtvW++Jl5w4JjwsA gywnTfEnBu3UEjk6/FH3M68p+EFE/yIuGx/qe9S7gDcpdptHk6k/m91abuZUzYJUCrP5 U8tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=7Wf8f/F8o0r8V5l27inB82r07nwwlRw1f5EgRtSutt0=; b=vUn+KdhtS+1Z/8c8s/GIA5aB2mIwLHP3uO7G4aS1pNXZ5rxT1l0BM2LP3tiuYFXHp7 OMl955pq505WF6FJbAVP/sjvsBQj/u13L3ul3hDN0mKPSxrXWVJO/j8VfJhJ52bX1qy/ kz8UAc3WO7x0AfQfg4VhcC/sBpcEMKpVpUymCYBlZxLWjMRaPDEVbBdrFQ/vpphEXedU 4jkPBWATLE/3kemY6UuEF5bhT5f+R+uzitX69q+gBH78iB/WIqKzd2clvlx8pLP+ldFS AbMwU8jQOgfekn1UonzYkYa6pwT37W2dJ8czX9ZRFLVI4ItXXB07K07I8if4DLpJXTw0 alsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OLin48gI; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si223926jaj.112.2021.05.10.11.14.56; Mon, 10 May 2021 11:15:10 -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=@redhat.com header.s=mimecast20190719 header.b=OLin48gI; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231577AbhEJSOo (ORCPT + 99 others); Mon, 10 May 2021 14:14:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:50610 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbhEJSOl (ORCPT ); Mon, 10 May 2021 14:14:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620670416; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7Wf8f/F8o0r8V5l27inB82r07nwwlRw1f5EgRtSutt0=; b=OLin48gIDARfIXedv1cMTiMQSQvh7e839XPLDLvsZtVHnYlIOGwbdpw0PsVLts4veF9yZR 48zksMwJ8QGGQ+LA1XEyuCKS8V1dGP1DaNAYK4woN7ixbSra+P3fafUmrG78up36fTQahO JcJCETjxOlM+KQPmpThk9IWCqvz9CnY= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-199-84QrnUWPPzmK9s7R3FiHmg-1; Mon, 10 May 2021 14:13:34 -0400 X-MC-Unique: 84QrnUWPPzmK9s7R3FiHmg-1 Received: by mail-wr1-f69.google.com with SMTP id t5-20020adfb7c50000b029010dd0bb24cfso7800813wre.2 for ; Mon, 10 May 2021 11:13:34 -0700 (PDT) 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=7Wf8f/F8o0r8V5l27inB82r07nwwlRw1f5EgRtSutt0=; b=WSdt6Ms8H+hTDpOtrNrwifi55XikQnpnwBfSOoGekNhWGsfQkDk7dPu0mDOLTrENby S8lsYtkEN+QU8geIyNExd2EA9EtAk7TpAoGFZzVwzl43cZhJYTpJZSJj/COS0Qk9jzII qAZhNhhL8D3vEvumW8ZFp7bFBL4irjS9P1+40V50LhCP6m9zyEIzh9/+uw+Jv+TxdTtg +2Ox6VVNwvdEoMBDRximxp+4lF/6sFhuPaUiL/7uwSqbX8Iz4PzFJGmDeh4jOEb80yPU dRB/oqriP+F0OZRTm/7IWYtrlzSVWe7Jk/+x1DXzHlqYhdiTu0LsnTsAE30IKAHJY7k6 S9KQ== X-Gm-Message-State: AOAM530nEdVyXHrdejkiG3F1rABZRJh84q/QYRU5fGJytF5I/zTZ3AzG 2aQUBViPZnL6cx66N9zsRJYhB1xKPIvbN0MpjWyVipTi/13TX0cmLRdzyFphPdndI5Expi/OxnC Kn/KgCm+pYEnnDRhgtlPFEHWi X-Received: by 2002:adf:fc11:: with SMTP id i17mr32538513wrr.368.1620670413555; Mon, 10 May 2021 11:13:33 -0700 (PDT) X-Received: by 2002:adf:fc11:: with SMTP id i17mr32538485wrr.368.1620670413383; Mon, 10 May 2021 11:13:33 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id j7sm20597281wmi.21.2021.05.10.11.13.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 May 2021 11:13:32 -0700 (PDT) Subject: Re: [PULL] topic/iomem-mmap-vs-gup To: Sean Christopherson , Jason Gunthorpe Cc: Daniel Vetter , Linus Torvalds , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , DRI Development , LKML , Linux-MM , Linux ARM , Linux Media Mailing List , linux-samsung-soc References: <20210510135031.GF2047089@ziepe.ca> <20210510153412.GG2047089@ziepe.ca> From: Paolo Bonzini Message-ID: Date: Mon, 10 May 2021 20:13:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/05/21 19:57, Sean Christopherson wrote: > +Paolo > > On Mon, May 10, 2021, Jason Gunthorpe wrote: >> On Mon, May 10, 2021 at 04:55:39PM +0200, Daniel Vetter wrote: >> >>> yeah vfio is still broken for the case I care about. I think there's >>> also some questions open still about whether kvm really uses >>> mmu_notifier in all cases correctly, >> >> IIRC kvm doesn't either. > > Yep, KVM on x86 has a non-trivial number of flows that don't properly hook into > the mmu_notifier. Paolo is working on fixing the problem, but I believe the > rework won't be ready until 5.14. Yeah, I like the way it's coming, but I'm at 20-ish patches and counting. Paolo