Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp248243ybh; Thu, 12 Mar 2020 01:05:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvRXlwGlFmEbUYjGX8Hb8h61fmbDKar/iDwpcj5vAyPgq1/2smbhP+aVzqOj+zNgZUAuyTD X-Received: by 2002:a9d:837:: with SMTP id 52mr5119072oty.354.1584000355855; Thu, 12 Mar 2020 01:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584000355; cv=none; d=google.com; s=arc-20160816; b=SOwLQrXc9J/Qa9NTJaS4sGa3lweLmtWwBqsO9NKonxLwes2dfS6UvrEVYYGVoMYfT5 G+UZuQFdKwKuSXYnfETJ29iuPw3N5ahFdVvsq3nf/YcWwRdL3jvuBLPbeZe6KRGAWDdX z5amu41zemwVIYuaKjZojj+GVaJyNTCtW57L4X01i9HDSVw9xDYr5dLVCR7ppVZjHoKa FM6muTPUEPEYfKB5mE0VVe8PrBqfwRT0TAIYMbzJIcK6qyGFXjtTp3qdKXRdcPkaxUdH jfZDzWpvp6t7z8B9Gb4++06Xu9NZFk4a0HGDV3I5qRSlIQ63M7WeKYMMCm7fUAVtTS18 6F7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=q4iN5hFyRXRFrfBJgEPXELjxe/yNaqJaWw4+EWVKGT8=; b=XZeZqIAhXF4dWnUrWaHcMb4m8e9ELTvogmHHXO03SnAdRjWdNRAUAwfMX02jg7yaD1 rlojyWtHAZUYBZI4ONFcsuu6fziIrkXYnOZycEVzSqJlMAyZHcleMDYsBzZQZJMXRabX SQ+nBIQBckbmp8Tm7vp9tZtQi39W6mNTwp1rJHV5njlpL2xur4RyW3j27tu9BDr33tlO IPfyVnfClM1PXlkKazJ5dEK3x8lakyHORguJHBtl/Of+EGyQMiq7YngUMOKQ+0a6fXVG Zxg4q+d5t0XBNB5XxNhMGj6tShOaS/vnijWGTJpftud3Nj8c1RUn3QA8JPvCLjbFv+SD Dz3w== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si413312oig.174.2020.03.12.01.05.43; Thu, 12 Mar 2020 01:05:55 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726856AbgCLIFV (ORCPT + 99 others); Thu, 12 Mar 2020 04:05:21 -0400 Received: from mga03.intel.com ([134.134.136.65]:3476 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbgCLIFV (ORCPT ); Thu, 12 Mar 2020 04:05:21 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 01:05:20 -0700 X-IronPort-AV: E=Sophos;i="5.70,544,1574150400"; d="scan'208";a="236744025" Received: from fpirou-mobl.ger.corp.intel.com (HELO localhost) ([10.252.52.195]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 01:05:18 -0700 From: "Patrick Ohly" To: Vivek Goyal , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, virtio-fs@redhat.com, miklos@szeredi.hu Cc: stefanha@redhat.com, dgilbert@redhat.com, mst@redhat.com Subject: Re: [PATCH 00/20] virtiofs: Add DAX support In-Reply-To: <20200304165845.3081-1-vgoyal@redhat.com> Organization: Intel GmbH, Dornacher Strasse 1, D-85622 Feldkirchen/Munich References: <20200304165845.3081-1-vgoyal@redhat.com> Date: Wed, 11 Mar 2020 14:38:03 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vivek Goyal writes: > 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. As a potential user of this, let me make sure I understand the expected outcome: is the goal to let virtiofs use DAX (for increased performance, etc.) or also let applications that use virtiofs use DAX? You are mentioning using the host's page cache, so it's probably the former and MAP_SYNC on virtiofs will continue to be rejected, right? -- Best Regards Patrick Ohly