Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4294416ybe; Mon, 9 Sep 2019 07:16:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxABlP3DbTRQwqUbMb3hb/i56chWmUUfeVnjAsMc28pPoOfzdFN3NEZVelkoRO6ELzy+xaO X-Received: by 2002:aa7:c24f:: with SMTP id y15mr25458210edo.152.1568038590417; Mon, 09 Sep 2019 07:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568038590; cv=none; d=google.com; s=arc-20160816; b=TS2jbeNSEGXHvqSSXTFjJGWZ9BzL1PZPiiWyyvF8n7bYs/0AtYgHyYtKTIkvSRvqpF 2Eeo8jeZrlzbqiMaEZ49mW6G5YSkjxnvckcmaAlJBPtwIT4+KTWUeI9Vz2bzXbKFFaT0 3eDovTUutl+9RQSbaBmIkDFORnJoo+vEG0GtodWzPftmB3NNI51Ovj2drQvl8/p77/cL JHg8w6v/jW6n906yK4RMfmMjRdbAoO2IuARz13YXDod6NhtKFAX5sIRnI6sKguAvpplR M83ETy6LjT1i9jP//+qm9Q0zK08ESrATo42GSFpzCwtTZeUrEyytM0etVarjt66cJLui Xfpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=VGeMwoZMeaxAUUKdDwiufJPjq5zHTLMCX0JCkUnweuc=; b=tcj5cA3WWDFHsqZr2g9DFoMuj2EV4S0RrS4CGF7b1fLDFzmcZYxL4kVgWvEtwMstlY C8Aj/2m5in3kEAMJ04+n8uy18d8iZALmwetvuiDRd0zkeY/8YCmEGFhigajj1yM/ZJB4 ilBhq5nYSTEld4kQdcBhhUH0jt9R0eZSuWxa8I+JiFqJsvTr75SSJIZ5juORPtGu6M40 bhTuUuUYXdiM0F7J+uxsZKTCC5xi2FBLUQrdGLkLvnKkOXKPjLSJiU7NufKjXIrmZCrn EbQHqX3haRGvCImsgOXo8cH0F6AV6lKuTXspdkQGCR075+41HU56gZOBZY9oLwPf+Phk cSBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f31si9253430ede.253.2019.09.09.07.16.06; Mon, 09 Sep 2019 07:16:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732982AbfIIC3U (ORCPT + 99 others); Sun, 8 Sep 2019 22:29:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43346 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731948AbfIIC3U (ORCPT ); Sun, 8 Sep 2019 22:29:20 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 18DD8309DEEA; Mon, 9 Sep 2019 02:29:20 +0000 (UTC) Received: from [10.72.12.61] (ovpn-12-61.pek2.redhat.com [10.72.12.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id CC5F760A9D; Mon, 9 Sep 2019 02:29:06 +0000 (UTC) Subject: Re: [PATCH 0/2] Revert and rework on the metadata accelreation To: Jason Gunthorpe Cc: "mst@redhat.com" , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "aarcange@redhat.com" , "jglisse@redhat.com" , "linux-mm@kvack.org" References: <20190905122736.19768-1-jasowang@redhat.com> <20190905135907.GB6011@mellanox.com> <7785d39b-b4e7-8165-516c-ee6a08ac9c4e@redhat.com> <20190907150330.GC2940@mellanox.com> From: Jason Wang Message-ID: Date: Mon, 9 Sep 2019 10:29:04 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190907150330.GC2940@mellanox.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Mon, 09 Sep 2019 02:29:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/7 下午11:03, Jason Gunthorpe wrote: > On Fri, Sep 06, 2019 at 06:02:35PM +0800, Jason Wang wrote: >> On 2019/9/5 下午9:59, Jason Gunthorpe wrote: >>> On Thu, Sep 05, 2019 at 08:27:34PM +0800, Jason Wang wrote: >>>> Hi: >>>> >>>> Per request from Michael and Jason, the metadata accelreation is >>>> reverted in this version and rework in next version. >>>> >>>> Please review. >>>> >>>> Thanks >>>> >>>> Jason Wang (2): >>>> Revert "vhost: access vq metadata through kernel virtual address" >>>> vhost: re-introducing metadata acceleration through kernel virtual >>>> address >>> There are a bunch of patches in the queue already that will help >>> vhost, and I a working on one for next cycle that will help alot more >>> too. >> >> I will check those patches, but if you can give me some pointers or keywords >> it would be much appreciated. > You can look here: > > https://github.com/jgunthorpe/linux/commits/mmu_notifier > > The first parts, the get/put are in the hmm tree, and the last part, > the interval tree in the last commit is still a WIP, but it would > remove alot of that code from vhost as well. > > Jason Thanks a lot, will have a look at these and come back if I met any issues.