Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1257473imu; Thu, 13 Dec 2018 11:58:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/VWkpOMFx0NgrqNjDnHH4HO96Nrz1NcJT0v74vROiuP7hoXwn3P1NdxdF8+a2e3INv6nlSw X-Received: by 2002:a62:c613:: with SMTP id m19mr115190pfg.207.1544731116169; Thu, 13 Dec 2018 11:58:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544731116; cv=none; d=google.com; s=arc-20160816; b=Z6KLP4ibyqUhUaz8N7lIr3m/UVPTQJw0PwH8/rBoJv12UeByiqLwD/MogdPaaZWQ+v vmupybT2IuRgfP/5rxlQxGSee91HafanO7Wuo731+046Q3OtV//11Px5LFiki3+U40Wu 68YhUrv3/6oiP1V3QvHIaeju7XC+lzmUumC2rOtJrv+8C72fT4LlElH5V1yxq0GaK+2S MPUTSQCCoUkny/7NTcBg+4X3M6/oyfGjtrU6Y60ueqDmkfI2iVYLdQOdYpvUIHkKbeCT rLDliB9IYOcKM8ruL7l+pMZAB8MMAvaMy3MS4JFylnRfBaf81JSUP/JJFE1n6WIZqPqz hzww== 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=TsKo232A90Q/y11IqC0AmQfyKdijRKOvwm3OJEXsKlg=; b=xNpMOP7wnXF5Fi9Wb0R1pYbv+6HnyhLCPAVCMH0ZRSeeFzIhL7DlMEaW9EZWhBbR1w 2XgbcWvdnrdylJD5vEJn4SlO1kDI95KicAWxq9noW7rD84VRgE45Kal6zUi0PEYNRZIg eR8tjzP+XtayxLu52oPyr6vcGSQPlicJrwgO02dTRpmMKfid5NFT5AfMCYKecPKZPi6Q 4GF1GWay0ar4ojyArx4YSQuEkZDwM7We7ykRpgS1EJaiZZ5o+KwNqSKr2KcfQQUBBYnz CaBZUwdwP89ZIdQwSX27H32P9wgsGzb0NJKNoXN1yRZ8I9bhZqyPA7RK/5fCSNOolLGO vXlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=l3m2rX27; 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 187si2572529pfb.41.2018.12.13.11.58.20; Thu, 13 Dec 2018 11:58:36 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=l3m2rX27; 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 S1729192AbeLMT4A (ORCPT + 99 others); Thu, 13 Dec 2018 14:56:00 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:54892 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727951AbeLMT4A (ORCPT ); Thu, 13 Dec 2018 14:56:00 -0500 Received: by mail-it1-f195.google.com with SMTP id i145so5529747ita.4; Thu, 13 Dec 2018 11:55:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TsKo232A90Q/y11IqC0AmQfyKdijRKOvwm3OJEXsKlg=; b=l3m2rX27q6sVM+8YWa0xbbDWX6k5XCv7TWdyvaoN7/fnNVmTY070aKfgCNcc0/+fS2 cPGlM4kSq6eOIheixxHuzV+ni80lHnr9r42oF0/AYrmckzdV9caFcED57E3hl6GVfK8f bKedDZg3Xx49m6d0ZyBbu348ffBa3SspIZuvHfxOE5hueAUNP99icNDYHQTSKlie9xZL 1MVGaPT4kxlShQDLWdOic0D/wKESM0uPE3An5B5szOshGNWwRL/DVfzAn/TPquYnThnn 3Drq7ARpAgmaGkFdg1LkuI40cGL83CizPhYFUFkjrYanrGvZ34Ke5IRY0xakeEZazTC4 mdOw== 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=TsKo232A90Q/y11IqC0AmQfyKdijRKOvwm3OJEXsKlg=; b=eUcRz3YT3Z/5g0UKbm3QuiUZ4gaH1ejCuyO81FwGD7PTrCuE4SNQm5ZzhS+YtJ1k6g KJqFF6B04hg7YCCjtlzl/5V7IFzi94Einn4+MjeIvP2auWFbkrxENLel5+8E927ETCwz FithsSz2lyAmFffcdreIjFcuteS18S6sAH7O5hLo62oQ6aIjUCVKi1TmImOapGVHsotw 59ynCmvgctOysqR9H2NOtVHeQAATL1zZVoEzEzxZ0hx4wgNG/fHcYWr7fbSWQx9FjQ2D 2ZQWhwPAsseKPnWNJ+cRJwYaH7mO3ggwrWOBs9mBCRIEE5Es6Hmtc9W//aYLDdLkJ3GA w3xQ== X-Gm-Message-State: AA+aEWYritsoG9hhiB+9/MCBwaJqlhPoSvbIgJctz2GACyJ14sxnhLf/ 4qmGgNNfRTisqTECIjzLiVXNnp9w7YGvkF8O8NE= X-Received: by 2002:a24:4648:: with SMTP id j69mr693247itb.56.1544730959317; Thu, 13 Dec 2018 11:55:59 -0800 (PST) MIME-Version: 1.0 References: <20181210171318.16998-1-vgoyal@redhat.com> <20181210171318.16998-16-vgoyal@redhat.com> In-Reply-To: <20181210171318.16998-16-vgoyal@redhat.com> From: Dan Williams Date: Thu, 13 Dec 2018 11:55:47 -0800 Message-ID: Subject: Re: [PATCH 15/52] fuse: map virtio_fs DAX window BAR To: vgoyal@redhat.com Cc: linux-fsdevel , Linux Kernel Mailing List , KVM list , Miklos Szeredi , stefanha@redhat.com, dgilbert@redhat.com, sweil@redhat.com, swhiteho@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 Mon, Dec 10, 2018 at 9:22 AM Vivek Goyal wrote: > > From: Stefan Hajnoczi > > Experimental QEMU code introduces an MMIO BAR for mapping portions of > files in the virtio-fs device. Map this BAR so that FUSE DAX can access > file contents from the host page cache. FUSE DAX sounds terrifying, can you explain a bit more about what this is? > The DAX window is accessed by the fs/dax.c infrastructure and must have > struct pages (at least on x86). Use devm_memremap_pages() to map the > DAX window PCI BAR and allocate struct page. PCI BAR space is not cache coherent, what prevents these pages from being used in paths that would do: object = page_address(pfn_to_page(virtio_fs_pfn)); ...?