Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4629504ybl; Mon, 3 Feb 2020 22:47:51 -0800 (PST) X-Google-Smtp-Source: APXvYqy8EKpedNbK3Dm7s257nEE8EtgU93xAHZK9bVETyS7nKCXo+6nUb4+z+QWqF6POjU3GYiPT X-Received: by 2002:a05:6808:8d0:: with SMTP id k16mr2463570oij.68.1580798870995; Mon, 03 Feb 2020 22:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580798870; cv=none; d=google.com; s=arc-20160816; b=Up4UhTTnRiWcPG+adBmooGUQPPeoGPChsLG83CvAX/BstmUjnxWB5AAHbYKqq+Zhm+ FXhbk/7G+MLcVaXXzfxo+uSpfJ1oGpBMveoSszASZoqwZLzZ0ZNoZCeyd5ctAFGfQEWh vkL0Mb7XzSx25WXRGy0Qw5iUTimgwlzLQO4PR08+vC3MJOQK30bNZ0kpdSoEJvL4oFKa rJJjQ3UwotGPa0LHv53Sej1PQWL6zId4yoAZzO4U6YSEH/jL0USzrg8SQXqBr36hAU9L 8N0RSOSZjj/wOVM5CKlezSEDUyl+FdGoYUxQewe5LAekeQ1ldPv7n7kzQ/7iuzbJXZLB vFXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=lRmh1aVKkLxdGY5o4e9g8sJUX2Z2AYQmtRAb6n2qp1c=; b=0E1ZPbnWfpfRQZvxSGhV0Yg9ltqFwCT+wstNz/Ghh8dRITw7mtB6LJJOQLK/VeAYUY OoXBn5hSOO34rpm6vX0e4T3D4xf4kM9rT8ZJdXc1GArixrZG9bCflM9wNqCexiT5/Cu3 Nvzh/1BlZ/jTgJmmMoii8Hnieps8WjM0Qrf2JcclDF2gWrBA71DYc9bbGE6qo5zVtgLz FM8yn/hJYGEsinos6iXSYDG3ppvxZa0+qOJpJM8V1GWToZIa/EzmiSJRqmqdgXvdkubJ 3h+/4RUStUv6c7XWuCsliUUBWflAP30EwATAta5aCHF442Mb1EBx6hBGXa4kABUNd3r+ mnHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VnYCn+j6; 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=pass (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 r26si7500000otk.79.2020.02.03.22.47.39; Mon, 03 Feb 2020 22:47:50 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VnYCn+j6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727127AbgBDGqg (ORCPT + 99 others); Tue, 4 Feb 2020 01:46:36 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:41529 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726887AbgBDGqf (ORCPT ); Tue, 4 Feb 2020 01:46:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580798794; 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=lRmh1aVKkLxdGY5o4e9g8sJUX2Z2AYQmtRAb6n2qp1c=; b=VnYCn+j6NcOkVwEKyfrJyFkQwg3GAB14N9jAMAHNuZlssCm9ioDy5J9xr0CfYh//W5VTIq BDbHcUvteW1d+0qk3GeVSMW6ed/ds60p0d7TqbRnbtr+CsxlUBkIR1cSWGqTXbx9xMje43 k3xDBTVH3npTc6kugs0hwkGwikZrG/4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-69-FSR9JKk9NNGNNcjsuyGcpA-1; Tue, 04 Feb 2020 01:46:33 -0500 X-MC-Unique: FSR9JKk9NNGNNcjsuyGcpA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 36F508010E6; Tue, 4 Feb 2020 06:46:30 +0000 (UTC) Received: from [10.72.12.170] (ovpn-12-170.pek2.redhat.com [10.72.12.170]) by smtp.corp.redhat.com (Postfix) with ESMTP id 21E881001B23; Tue, 4 Feb 2020 06:46:17 +0000 (UTC) Subject: Re: [PATCH] vhost: introduce vDPA based backend To: "Michael S. Tsirkin" Cc: Tiwei Bie , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, shahafs@mellanox.com, jgg@mellanox.com, rob.miller@broadcom.com, haotian.wang@sifive.com, eperezma@redhat.com, lulu@redhat.com, parav@mellanox.com, rdunlap@infradead.org, hch@infradead.org, jiri@mellanox.com, hanand@xilinx.com, mhabets@solarflare.com, maxime.coquelin@redhat.com, lingshan.zhu@intel.com, dan.daly@intel.com, cunming.liang@intel.com, zhihong.wang@intel.com References: <20200131033651.103534-1-tiwei.bie@intel.com> <7aab2892-bb19-a06a-a6d3-9c28bc4c3400@redhat.com> <20200204005306-mutt-send-email-mst@kernel.org> From: Jason Wang Message-ID: Date: Tue, 4 Feb 2020 14:46:16 +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: <20200204005306-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/2/4 =E4=B8=8B=E5=8D=882:01, Michael S. Tsirkin wrote: > On Tue, Feb 04, 2020 at 11:30:11AM +0800, Jason Wang wrote: >> 5) generate diffs of memory table and using IOMMU API to setup the dma >> mapping in this method > Frankly I think that's a bunch of work. Why not a MAP/UNMAP interface? > Sure, so that basically VHOST_IOTLB_UPDATE/INVALIDATE I think? Thanks