Received: by 10.192.165.148 with SMTP id m20csp772272imm; Wed, 25 Apr 2018 07:27:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/eyqKAXAaeuWZFznlVP4ZFP7H/BkfJMGyqRn/OK/c4OIxX1FQX34OxgodDRV82SDwMVTin X-Received: by 2002:a17:902:529:: with SMTP id 38-v6mr29695241plf.64.1524666472041; Wed, 25 Apr 2018 07:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524666472; cv=none; d=google.com; s=arc-20160816; b=JxYJWz1ZzPV6Hjte0X7b3onuA6ihYYBeSqW8QHEXuz98KMJ8PUzba2usUGh1wih+EM mWeFPyV0EbgsrxX1P+i3u4tSoziNNBQv2djYHGSlWUmsqMD8Rp4KRxuHm63ivTFpu5cl +PKqZsXw1sLfe4FjMXJawosMpH8uTuwIZfq9erAlSfUdpy5wfJIgxFFPZInX4BNklTZR xrtBkGoZCepbvv3JtFeUw+oyR70u9aXl3q3xpOHyN0K/d3QQG8Qh7zNsuhZS/pt10iCo gIe1CyigDCUZtfeO+4YjhdZxw7f8Ps19GbrVPE+IPquORq+Nqn8RGEi23QOmPSevcqEq 0Drg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:organization:openpgp:from:cc:references:to:subject :arc-authentication-results; bh=c+4hg5hcQCYwHPlNiGTzxSm9CIZc6+JOCmsdIC6YPVA=; b=lqCqQuaMg9B2V4/ZXg3nwVJZndeugZ1vY6DI4KTknrVZAFw9AJmBDh9SIV9CPIJWm/ U8HdBJABl4yB0BtLNL/sBM2lFJsYOcviX6uBrNGk39yVu3jnqShHJbQIZYuFWO+wyGqR egYp8ePFATFv+taWwAjl9KgE7AdzfsgNszBAzWdYqMj9gsRICpJunolSjxUdAEmj+Pnc fuFeFXfFyzDwyPMCwsIqNprXjSrp8mWQ3693Xgb3Wvi1z8irp6KYhc1UXeabwq+qvJ3B mpznPCX+SVdj6gDffSkXp/8/OEO6pP6H1qsBTX4mhU5d6ryPjAPt7WH6GMALEKXskOYC PqXA== 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 b6-v6si1273374plm.153.2018.04.25.07.27.37; Wed, 25 Apr 2018 07:27:51 -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 S1754444AbeDYOZn (ORCPT + 99 others); Wed, 25 Apr 2018 10:25:43 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48146 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753283AbeDYOZl (ORCPT ); Wed, 25 Apr 2018 10:25:41 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A522E8DC3B; Wed, 25 Apr 2018 14:25:40 +0000 (UTC) Received: from [10.10.123.175] (ovpn-123-175.rdu2.redhat.com [10.10.123.175]) by smtp.corp.redhat.com (Postfix) with ESMTP id A3722215CDCB; Wed, 25 Apr 2018 14:25:38 +0000 (UTC) Subject: Re: [Qemu-devel] [RFC v2] qemu: Add virtio pmem device To: Pankaj Gupta , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, qemu-devel@nongnu.org, linux-nvdimm@ml01.01.org, linux-mm@kvack.org References: <20180425112415.12327-1-pagupta@redhat.com> <20180425112415.12327-4-pagupta@redhat.com> Cc: kwolf@redhat.com, haozhong.zhang@intel.com, jack@suse.cz, xiaoguangrong.eric@gmail.com, riel@surriel.com, niteshnarayanlal@hotmail.com, david@redhat.com, ross.zwisler@intel.com, lcapitulino@redhat.com, hch@infradead.org, mst@redhat.com, stefanha@redhat.com, imammedo@redhat.com, marcel@redhat.com, pbonzini@redhat.com, dan.j.williams@intel.com, nilal@redhat.com From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Organization: Red Hat, Inc. Message-ID: <25f3e433-cfa6-4a62-ba7f-47aef1119dfc@redhat.com> Date: Wed, 25 Apr 2018 09:25:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180425112415.12327-4-pagupta@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CFJqPHc1lVbGj70GneZIm5syNGVZjNCpA" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 25 Apr 2018 14:25:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 25 Apr 2018 14:25:40 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'eblake@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CFJqPHc1lVbGj70GneZIm5syNGVZjNCpA Content-Type: multipart/mixed; boundary="1IGSjTW0uM1A8ilmt1jp7ZPWiEf26VDfr"; protected-headers="v1" From: Eric Blake To: Pankaj Gupta , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, qemu-devel@nongnu.org, linux-nvdimm@ml01.01.org, linux-mm@kvack.org Cc: kwolf@redhat.com, haozhong.zhang@intel.com, jack@suse.cz, xiaoguangrong.eric@gmail.com, riel@surriel.com, niteshnarayanlal@hotmail.com, david@redhat.com, ross.zwisler@intel.com, lcapitulino@redhat.com, hch@infradead.org, mst@redhat.com, stefanha@redhat.com, imammedo@redhat.com, marcel@redhat.com, pbonzini@redhat.com, dan.j.williams@intel.com, nilal@redhat.com Message-ID: <25f3e433-cfa6-4a62-ba7f-47aef1119dfc@redhat.com> Subject: Re: [Qemu-devel] [RFC v2] qemu: Add virtio pmem device References: <20180425112415.12327-1-pagupta@redhat.com> <20180425112415.12327-4-pagupta@redhat.com> In-Reply-To: <20180425112415.12327-4-pagupta@redhat.com> --1IGSjTW0uM1A8ilmt1jp7ZPWiEf26VDfr Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04/25/2018 06:24 AM, Pankaj Gupta wrote: > This patch adds virtio-pmem Qemu device. >=20 > This device presents memory address range=20 > information to guest which is backed by file=20 > backend type. It acts like persistent memory=20 > device for KVM guest. Guest can perform read=20 > and persistent write operations on this memory=20 > range with the help of DAX capable filesystem. >=20 > Persistent guest writes are assured with the=20 > help of virtio based flushing interface. When=20 > guest userspace space performs fsync on file=20 > fd on pmem device, a flush command is send to=20 > Qemu over VIRTIO and host side flush/sync is=20 > done on backing image file. >=20 > This PV device code is dependent and tested=20 > with 'David Hildenbrand's ' patchset[1] to=20 > 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=20 > among PCI bar vs memory device, will update=20 > as per concensus. s/concensus/consensus/ >=20 > [1] https://marc.info/?l=3Dqemu-devel&m=3D152450249319168&w=3D2 >=20 > Signed-off-by: Pankaj Gupta > --- =2E..here, where it is part of the email, but not picked up by 'git am'. > +++ b/qapi/misc.json > @@ -2871,6 +2871,29 @@ > } > } > =20 > +## > +# @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. > + 'memdev': 'str' > + } > +} > + > ## > # @MemoryDeviceInfo: > # > @@ -2880,7 +2903,8 @@ > ## > { 'union': 'MemoryDeviceInfo', > 'data': { 'dimm': 'PCDIMMDeviceInfo', > - 'nvdimm': 'PCDIMMDeviceInfo' > + 'nvdimm': 'PCDIMMDeviceInfo', > + 'virtio-pmem': 'VirtioPMemDeviceInfo' > } > } > =20 >=20 --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --1IGSjTW0uM1A8ilmt1jp7ZPWiEf26VDfr-- --CFJqPHc1lVbGj70GneZIm5syNGVZjNCpA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlrgj+EACgkQp6FrSiUn Q2oftQgAkgISPCCNGA8QYSXkQfHKQ2qPa3CR6cJ1vSVXjJWEsPypyfrQ4P/caxJC OaTfjufz0Tgn/kn1MOzeDYgQGnOjYZJC+1YYcMhR8arrUb6Whv4ejHpnXGNC1lxJ hLcRxPhD7fg7CW55xgi/pXF1OLUxMMQdtyd57SCW5rCt5NPi8TZRsDOiM34KEbDW EewLjBrjnueBaLVywp5I0KFODWua4/qSmkzB3E/EnHw66uHKrWH0PAHnH2s3OnwL 0o4eBB2YnSrf2eKCuLY5XvJwD9HyRQm9h6sKnuP7+PqzaLlycHphA1jfOL+hNK2w txr4zrD38INfFRWQy0QHUt84HMGbPg== =ylBq -----END PGP SIGNATURE----- --CFJqPHc1lVbGj70GneZIm5syNGVZjNCpA--