Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp178872ybh; Tue, 10 Mar 2020 22:23:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtR6GHJL57HO86xbDyvvgWfGryzZUKwZt3vvUOQrgc/C8156LPjgIVHSZ3LjrjXYbgMmEBj X-Received: by 2002:a9d:4807:: with SMTP id c7mr1080479otf.74.1583904227106; Tue, 10 Mar 2020 22:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583904227; cv=none; d=google.com; s=arc-20160816; b=NSNk+tzyO3mM5rBOWELIQpZNhnqIzQoRCWV4zSR1AQJ27bucXucx8Oe0+gcyWAGzAn iXhM38Wo0awQuuAW1WPfE5wfDBMvxDwkldiN1UnfcTuBFYN5M4dCqlfzKrFzCZvwiTXX 2IQYkf1h8uBH57ZbXVUC/mZQds2mvx+RxCedo1fb4NFHRjs+NntR96yeNY7KQIsmV8fr uC57yKKNHInJ1cxW33P3whrw3WjaTo5dEU4E3KXtjaxqoIxVYxPH8w1dUYpPKmCNoz+k FGq0QDZPgvyd+QyQYHpaVp0Fy3ODn/r+EaIlBZGnqdJqZoWcAJyrF28tXitiHK5sO8rO dh3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vhWEqnexHgncpvxDS2l8sBNTUU1im25PrBPC7w+tOLk=; b=GnhqaH9umN/gY5fraRg98R55uekS0wMo+THPo6DJc+/mJl4ppxOCweVTrKyQrzwMBY QSs+xDppjtQBtpS2wLJjZXSn/PJ9OVy8gl8bDY0Rz0E4YmQGTK+AG7P9FU2YtKKa4ZOt gz2YkNGn+tx2xjyZP9/0M9Nm/59knblK7BtUr7vsE767lHv+oTLh6+TvxES54MZFJ08m j2M9oJ7VWEG9yoB76jJoYGisrlsuKfLpskdFzGIn7Ee4PyEwG42OgAVhr1kAbZxIL9LA 2R/8TDGcIvdGfgeenR2i3f2DqNuIqL5zFh19rWQXEewT/3Wn55WEk3RYpC5lKIQ10mJz dBPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FQioROWe; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si808942ots.179.2020.03.10.22.23.34; Tue, 10 Mar 2020 22:23:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FQioROWe; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbgCKFXF (ORCPT + 99 others); Wed, 11 Mar 2020 01:23:05 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:37256 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbgCKFXF (ORCPT ); Wed, 11 Mar 2020 01:23:05 -0400 Received: by mail-io1-f65.google.com with SMTP id k4so634783ior.4; Tue, 10 Mar 2020 22:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vhWEqnexHgncpvxDS2l8sBNTUU1im25PrBPC7w+tOLk=; b=FQioROWeCZRT5RbT70b6aS3L4z5A8Xh9+TkXcRo1x7CAqq0IA0ua0MEGE5Uykqe0FL s7mGcH8etLLtylbbbK6FSbTb6IJjRhs43A8ysMHl6swkDiSbevywH8PsYFGAc5tuTu4F hx5OcZDYIvjseSVuRKJfka41SHIGYvXKH88DsabLaszJEEo8W3EyzPcO//PwBEE3M3gH e8lIZX3B3ofO7IvWP08ivloJcQzyEW6krILi2rllnwhYD/9lqaIRca+M2m313QFn0KyF ArCoRx8xQTINJyLzKbBhKUuuPeE0059amPOESX5qE3B8OeqEICFbnYjaivOd08jIc7RP nwqA== 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=vhWEqnexHgncpvxDS2l8sBNTUU1im25PrBPC7w+tOLk=; b=n3/N032rmrj9R99Ha7f+uJs9DCRupeRZV3QHXyxcOiig2sXcCCwcecQSIeRn7ova1S y6e0jINgm4wQWfDKcGJjYInk4PfYTtg+ET3VxVXxxUB5mA0tFh8mgkDfjIMSJm24Wp67 SOvCABNrajYhgZIR9bcCOEVbyPRXbjNRRPx/yhNd/OkUeXWGACnkBCpkmAl5w1he8jtJ CWb8MFqRKFpMYNhE6ua/Gp1wCX4LbxISCvITgGwo9pTgv0IWvTO7QEwVIUT0DDRbFWIX emH4uq5oBzS8bwVux0MmG2podFv4WwoGrqjAjk/B/spSFZDJPUBT1dK0qIidDQb8R63A jiYg== X-Gm-Message-State: ANhLgQ1Qbx6sWtTCHDlVSCfAePTxBHVBreHAsdVT4cbGobcwF84DW0Tb IMNCLMoEMJc3FqSYgVRf4gnyqCBRzxhBU0Ma4Nk= X-Received: by 2002:a6b:784a:: with SMTP id h10mr1383631iop.64.1583904182703; Tue, 10 Mar 2020 22:23:02 -0700 (PDT) MIME-Version: 1.0 References: <20200304165845.3081-1-vgoyal@redhat.com> In-Reply-To: <20200304165845.3081-1-vgoyal@redhat.com> From: Amir Goldstein Date: Wed, 11 Mar 2020 07:22:51 +0200 Message-ID: Subject: Re: [PATCH 00/20] virtiofs: Add DAX support To: Vivek Goyal Cc: linux-fsdevel , linux-kernel , linux-nvdimm , virtio-fs@redhat.com, Miklos Szeredi , Stefan Hajnoczi , "Dr. David Alan Gilbert" , mst@redhat.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 4, 2020 at 7:01 PM Vivek Goyal wrote: > > Hi, > > This patch series adds DAX support to virtiofs filesystem. This allows > bypassing guest page cache and allows mapping host page cache directly > in guest address space. > > When a page of file is needed, guest sends a request to map that page > (in host page cache) in qemu address space. Inside guest this is > a physical memory range controlled by virtiofs device. And guest > directly maps this physical address range using DAX and hence gets > access to file data on host. > > This can speed up things considerably in many situations. Also this > can result in substantial memory savings as file data does not have > to be copied in guest and it is directly accessed from host page > cache. > > Most of the changes are limited to fuse/virtiofs. There are couple > of changes needed in generic dax infrastructure and couple of changes > in virtio to be able to access shared memory region. > > These patches apply on top of 5.6-rc4 and are also available here. > > https://github.com/rhvgoyal/linux/commits/vivek-04-march-2020 > > Any review or feedback is welcome. > [...] > drivers/dax/super.c | 3 +- > drivers/virtio/virtio_mmio.c | 32 + > drivers/virtio/virtio_pci_modern.c | 107 +++ > fs/dax.c | 66 +- > fs/fuse/dir.c | 2 + > fs/fuse/file.c | 1162 +++++++++++++++++++++++++++- That's a big addition to already big file.c. Maybe split dax specific code to dax.c? Can be a post series cleanup too. Thanks, Amir.