Received: by 10.192.165.148 with SMTP id m20csp2027570imm; Thu, 26 Apr 2018 05:29:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp/NObnRCXE7EJylvrj+aiSEVOs6fbzUK+e5yanav+ZfSjTS0EGmfyVltSXrQiJMfpn4Hce X-Received: by 2002:a17:902:8343:: with SMTP id z3-v6mr13092012pln.71.1524745752134; Thu, 26 Apr 2018 05:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524745752; cv=none; d=google.com; s=arc-20160816; b=oJc/ppFD1Zt59umJvmKaHidnfcNVtjh/2WeXKL2HeyCue8EWvncqDNAcbDdfK0Zjws BtfstUVnPALQGBIKIVmb2CRrRkpDon+YQj7+WiI9YqfOfg3/4mZhUAbtzVkf9K1L++TA vYJ7LmEZvgAXWCAaX+cXl2gAEVEEfmXZYLrCfLQdswKwbYHOJI0pQkoojduqxLxeU+W7 jyRoZ8kA+dAJTnRdpq5elK8DSOw6yhsZG1zdOFuz1VKqmzM38K4F/WHaxJlh7kpTNzs6 09q/iodoxuvJxo7MlIgtNKpWQ+dTIGydwgZzck01HxJWtotopZXNvNRCi9VmweXBi8mx sxhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=Sz3BJsFsgBVPd2FQL/GZdhk6H0Js5tpR+/SLsDFBw4M=; b=dkoMuAvOTw2mSSWYxen0cFyDw1xbo+mY/x54PfVEifwfr7Wco5KmEzp4IRhm8SlaCX 2lqbqH1BNveObp/yxcA9M7j+V1ZijgWniHcmAQaNGFUpZO8XgT9oaemw4oBezHZ4IViv iSLPRZo+hXlzn30NI0caN2VpBXlcHYQfHNamlY2Hk3lV2RbXnTOoLvQmbzL+JwaoGMJW xb1KFQUMxhST4wIEJlOM4D32R8YyYqETp3PupWMSAOzpdzU5ANh/rnAmkenkAmil1U1z YqI4uZrY8Ae1k2gy7i8XjKum65rF9PDM/qzFtAkOBSzxJfU/KV6jaf9tmHEy8TVBijZM zmyw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m14si15618015pgs.190.2018.04.26.05.28.57; Thu, 26 Apr 2018 05:29:12 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755680AbeDZM1q (ORCPT + 99 others); Thu, 26 Apr 2018 08:27:46 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48622 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754723AbeDZM1o (ORCPT ); Thu, 26 Apr 2018 08:27:44 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 563E44074453; Thu, 26 Apr 2018 12:27:43 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2DB962026E03; Thu, 26 Apr 2018 12:27:42 +0000 (UTC) From: Jeff Moyer To: Dan Williams Cc: Pankaj Gupta , 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 Subject: Re: [RFC v2 1/2] virtio: add pmem driver References: <20180425112415.12327-1-pagupta@redhat.com> <20180425112415.12327-2-pagupta@redhat.com> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Thu, 26 Apr 2018 08:27:41 -0400 In-Reply-To: (Dan Williams's message of "Wed, 25 Apr 2018 07:43:52 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 26 Apr 2018 12:27:43 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 26 Apr 2018 12:27:43 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jmoyer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan Williams writes: > [ adding Jeff directly since he has also been looking at > infrastructure to track when MAP_SYNC should be disabled ] > > On Wed, Apr 25, 2018 at 7:21 AM, Dan Williams wrote: >> 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 enable to disable... I like it! ;-) >> 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. Ideally, qemu (seabios?) would advertise a platform capabilities sub-table that doesn't fill in the flush bits. -Jeff