Received: by 10.192.165.148 with SMTP id m20csp805302imm; Wed, 25 Apr 2018 07:58:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/TF4sCYHIOIF7fr+lcS1RtbWuJnVcVif4Z/B2Sn/WHZcp47r7qpNm16lz31uvBsO1D2aL5 X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr11362721plb.299.1524668323466; Wed, 25 Apr 2018 07:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524668323; cv=none; d=google.com; s=arc-20160816; b=bSsMcygTwLffiyiaLun6SzCdble3x92tiBTssLrnMuNoHrHGeaPO+WP/Vzry+214m7 SAb0IwOxMVF0dan1WeiwgWZVWGzlLFZOiTX6bLHdVS+9Bhr1LP7UQ22nvaTug+pVBvm4 Ks28d8W1AMtfidXv9USVMitEw0I0N8bF613ccEKFmscxsFMMjzdDl7rlb0rpXa7Zjpf/ KxiNX0GOoUiv6lyGFcN/hBKZed8oprh513bVpngsQuZoOhxcY+AdhAwAm7lmcnKv1pK3 KFA6nvyQhDSCDYeAhtXVzo5i0DJ6/l8OOFvzy0iY7raSvZUPPM6Zwx/rXaB52qosr0yz TkNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:arc-authentication-results; bh=StMlwDUBqWe9g9rY6XIWHN2GhLgDedPjrJcddc2H7xU=; b=O8R/bsHw7NPRtZJ/9rqZx0DuVbTtXarLVqW77x6oI+0NlZrRgGqf3/kijIBtbIsHvc wOsDrLW4ZObgV470ZmgHgZrNS0qdsXlmIKUlLHixA6zIAdKva3CmM0K20AxLt5FiRLSo 0vSWspkkK/EZufzPSOcfOrvZ3sQzwwXGLrh/YB8NGLIOzXuDnEBhpTzcZQ/49qNSKnfP 5zkvd6NQsUiO+3ZlnLPC4s1AdYFLUTxLJZKSWV0KIUWdbCJ0IeLYD/irceBMsVFsYait 9UvkZoYvSr+e/hgpKvpRKaOROyrpHFId8RhCRXKbGaZlRClUsavCq8ynEYqjsKVr3jir eyfA== 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 a5-v6si15902040pla.117.2018.04.25.07.58.29; Wed, 25 Apr 2018 07:58:43 -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 S1754718AbeDYO4D (ORCPT + 99 others); Wed, 25 Apr 2018 10:56:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40230 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754196AbeDYOz6 (ORCPT ); Wed, 25 Apr 2018 10:55:58 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06BB2C057FAD; Wed, 25 Apr 2018 14:55:58 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CA3B16A69E; Wed, 25 Apr 2018 14:55:57 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 7705B18033EB; Wed, 25 Apr 2018 14:55:57 +0000 (UTC) Date: Wed, 25 Apr 2018 10:55:57 -0400 (EDT) From: Pankaj Gupta To: Eric Blake Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, qemu-devel@nongnu.org, linux-nvdimm@ml01.01.org, linux-mm@kvack.org, kwolf@redhat.com, haozhong zhang , jack@suse.cz, xiaoguangrong eric , riel@surriel.com, niteshnarayanlal@hotmail.com, david@redhat.com, ross zwisler , lcapitulino@redhat.com, hch@infradead.org, mst@redhat.com, stefanha@redhat.com, pbonzini@redhat.com, marcel@redhat.com, imammedo@redhat.com, dan j williams , nilal@redhat.com Message-ID: <634642140.22649359.1524668157371.JavaMail.zimbra@redhat.com> In-Reply-To: <25f3e433-cfa6-4a62-ba7f-47aef1119dfc@redhat.com> References: <20180425112415.12327-1-pagupta@redhat.com> <20180425112415.12327-4-pagupta@redhat.com> <25f3e433-cfa6-4a62-ba7f-47aef1119dfc@redhat.com> Subject: Re: [Qemu-devel] [RFC v2] qemu: Add virtio pmem device MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.116.111, 10.4.195.1] Thread-Topic: qemu: Add virtio pmem device Thread-Index: Eonhq2j8h5ewHvkm9qa3Zisytq9mkw== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 25 Apr 2018 14:55:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > On 04/25/2018 06:24 AM, Pankaj Gupta wrote: > > This patch adds virtio-pmem Qemu device. > > > > This device presents memory address range > > information to guest which is backed by file > > backend type. It acts like persistent memory > > device for KVM guest. Guest can perform read > > and persistent write operations on this memory > > range with the help of DAX capable filesystem. > > > > Persistent guest writes are assured with the > > help of virtio based flushing interface. When > > guest userspace space performs fsync on file > > fd on pmem device, a flush command is send to > > Qemu over VIRTIO and host side flush/sync is > > done on backing image file. > > > > This PV device code is dependent and tested > > with 'David Hildenbrand's ' patchset[1] to > > map non-PCDIMM devices to guest address space. > > This sentence doesn't belong in git history. It is better to put > information like this... > > > There is still upstream discussion on using > > among PCI bar vs memory device, will update > > as per concensus. > > s/concensus/consensus/ > > > > > [1] https://marc.info/?l=qemu-devel&m=152450249319168&w=2 > > > > Signed-off-by: Pankaj Gupta > > --- > > ...here, where it is part of the email, but not picked up by 'git am'. I see. Thanks! > > > > +++ b/qapi/misc.json > > @@ -2871,6 +2871,29 @@ > > } > > } > > > > +## > > +# @VirtioPMemDeviceInfo: > > +# > > +# VirtioPMem state information > > +# > > +# @id: device's ID > > +# > > +# @start: physical address, where device is mapped > > +# > > +# @size: size of memory that the device provides > > +# > > +# @memdev: memory backend linked with device > > +# > > +# Since: 2.13 > > +## > > +{ 'struct': 'VirtioPMemDeviceInfo', > > + 'data': { '*id': 'str', > > + 'start': 'size', > > + 'size': 'size', > > TAB damage. o.k > > > + 'memdev': 'str' > > + } > > +} > > + > > ## > > # @MemoryDeviceInfo: > > # > > @@ -2880,7 +2903,8 @@ > > ## > > { 'union': 'MemoryDeviceInfo', > > 'data': { 'dimm': 'PCDIMMDeviceInfo', > > - 'nvdimm': 'PCDIMMDeviceInfo' > > + 'nvdimm': 'PCDIMMDeviceInfo', > > + 'virtio-pmem': 'VirtioPMemDeviceInfo' > > } > > } > > > > > > -- > Eric Blake, Principal Software Engineer > Red Hat, Inc. +1-919-301-3266 > Virtualization: qemu.org | libvirt.org > >