Received: by 10.192.165.148 with SMTP id m20csp766957imm; Wed, 25 Apr 2018 07:23:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrN6yQC2awTLjE/xVIyIjk4isMnPaNXSOM3VxLBCb/EXPudtc32VgrCIpyb6/3n/faEsnoG X-Received: by 10.99.65.199 with SMTP id o190mr6703565pga.57.1524666187190; Wed, 25 Apr 2018 07:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524666187; cv=none; d=google.com; s=arc-20160816; b=qS/NIhWPwDf4IpRcHZhrCzXZxm82RKPZudpXmas070XYjCNWckevr5h+4XsZ2DxzBV TzVmYwnzRNkEk7bIHMDrdhwHI2zEYKS6oNcjACtXffrBEaDIpAhDZ6+D8JaVlYA1j9wm ndWDvlLjjWAM/4mS2SoNrhiJNAtGxa01AYfxttocHwi58aoTSxuBdOHT0U4p3Tj3AeRk IH7meu4jqZo5e1+9MWxFMeqtnGHLqSu9EsdiuCGXsPteT5lhT3vMcDWCEK6IPyNDiIsV DWoRjAO8w/3ly+fZh21l0yiSozDwhm+UCuNk5RRzpODfXMe7MEWkdxgxZNDekBd+W6Uj UagA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=HDPToowxcTCwMzsTvRix8vCy6Fk++k59kR0KA7xgTr8=; b=rKrpgaJE/43a5WCyaQTaFVNxVBvO0yIG4YQRNl0e0PEnYZ3dEV4MMBtubUDcWHzWl7 4TEPU+UyLNGUU++3ur2FHQrIunNGq66Nfy7hFfiFqOETdt+XavA3Ad6Xw/Sx30JUoM+Y PKxDJnwU7zBvTTmMNPi09jy6fvVb2LCApTXArTq1ObCfQjjGhoUkAHodIEaks0rIwRC/ nRk8cyKmozKf5cMMq2URcA89lzgxVATkc2oH7TZACnR++X2QzNYR0ygng9OYhsO3xE01 phhmkNZMYd8cfYEGE5JOQ9O7cf6VmFjnPjAdAC8nuSM6cfbqflCnThPDPAYKqJzoQ3nu x4+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=qoWuwkiG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l192si14044988pge.365.2018.04.25.07.22.52; Wed, 25 Apr 2018 07:23:07 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=qoWuwkiG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754607AbeDYOVY (ORCPT + 99 others); Wed, 25 Apr 2018 10:21:24 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:34585 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754400AbeDYOVW (ORCPT ); Wed, 25 Apr 2018 10:21:22 -0400 Received: by mail-ot0-f195.google.com with SMTP id i5-v6so25518501oth.1 for ; Wed, 25 Apr 2018 07:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HDPToowxcTCwMzsTvRix8vCy6Fk++k59kR0KA7xgTr8=; b=qoWuwkiGWrUCRZ2c0LkUjahCT6Ve7URDR2qqGHd++M/NuqIuly2JFWFwRLTAuU2X4B JKF8C/i/oO0Dq1jC50fZth3OuUSNHDwA0vn2gL73U9yo9J9yoUnpuRFL4oTtgvQbf0fK y3RmOut3IlFxsjA1jYRTUh4Hu5nvUw0mZCt3fg789f0u9nVbXCwdV4jbMQm17XJPFEPJ zA/eUA76v5Gy5zsBkplVHw5nS1WOfwO+odQp7O8hsv2N5a6sry8hXxFI27KZf9q/R1KE 4gqocTB7UFH+kunpysN69dDDcBIYMRUxvxFjwDh19u1HqbJcw0xqTmByBKI6SqcUEYl4 Nl/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HDPToowxcTCwMzsTvRix8vCy6Fk++k59kR0KA7xgTr8=; b=pdh1Eei6DGqCCAfd6Wr3jwxduId3SdHiCBf1Nmy1fxuo1/pakQOggp/pOmgn9dZI7I IHxIB+1XT2+YGXbloeFra5cxIbr+mR3yF7bFItkEJFN8i/tyzNDtqWDmoWsN2LZpSVs3 ulTRdRO6CIqHoQcNbK3jeO6bpPT6yvd8HNBIYn/NOEbs+xgK4/DXHChcZVQq52pGXtb6 B7a77AnLfra3vHrZOeqT2wDsmB0IvMhVFM6REqQJJPXUS9mOMuE6sZSvS94XnczSqdrZ BycVAzIoSYDwash+TDWHkyh1HasJQIM5UBv6qjITjIY9A/JstpvDznwZYLP0C2CfrU0Q T92w== X-Gm-Message-State: ALQs6tB5VQohTpzpNDM1q32ydeV1qJp7/Yc78KXwh8QXvav3pP9/n42o C9m6k0Mi9T/nguAt3bXBkJRr2s170QWxOPXb8hEY4A== X-Received: by 2002:a9d:3011:: with SMTP id d17-v6mr5634124otc.292.1524666082256; Wed, 25 Apr 2018 07:21:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2d36:0:0:0:0:0 with HTTP; Wed, 25 Apr 2018 07:21:21 -0700 (PDT) In-Reply-To: <20180425112415.12327-2-pagupta@redhat.com> References: <20180425112415.12327-1-pagupta@redhat.com> <20180425112415.12327-2-pagupta@redhat.com> From: Dan Williams Date: Wed, 25 Apr 2018 07:21:21 -0700 Message-ID: Subject: Re: [RFC v2 1/2] virtio: add pmem driver To: Pankaj Gupta Cc: Linux Kernel Mailing List , KVM list , Qemu Developers , linux-nvdimm , Linux MM , Jan Kara , Stefan Hajnoczi , Rik van Riel , Haozhong Zhang , Nitesh Narayan Lal , Kevin Wolf , Paolo Bonzini , "Zwisler, Ross" , David Hildenbrand , Xiao Guangrong , Christoph Hellwig , Marcel Apfelbaum , "Michael S. Tsirkin" , niteshnarayanlal@hotmail.com, Igor Mammedov , lcapitulino@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, Apr 25, 2018 at 4:24 AM, Pankaj Gupta wrote: > This patch adds virtio-pmem driver for KVM > guest. Minor nit, please expand your changelog line wrapping to 72 columns. > > Guest reads the persistent memory range > information from Qemu over VIRTIO and registers > it on nvdimm_bus. It also creates a nd_region > object with the persistent memory range > information so that existing 'nvdimm/pmem' > driver can reserve this into system memory map. > This way 'virtio-pmem' driver uses existing > functionality of pmem driver to register persistent > memory compatible for DAX capable filesystems. We need some additional enabling to disable MAP_SYNC for this configuration. In other words, if fsync() is required then we must disable the MAP_SYNC optimization. I think this should be a struct dax_device property looked up at mmap time in each MAP_SYNC capable ->mmap() file operation implementation.