Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp388934imm; Tue, 24 Jul 2018 22:02:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdSaecdCrQrAM0Bg+um9gQlf5du8mOTNMOsBZrSjFRPCEiJyBdkGH7yxXKDI9SASvTAEfmw X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr19676781plx.318.1532494970899; Tue, 24 Jul 2018 22:02:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532494970; cv=none; d=google.com; s=arc-20160816; b=n+VexjKs/sVV9tuT3qnNEGp84FgK663SZ0K8K1vUURJkVNGwPTAYaUTZnL4dBwlq9V SvNI8LDbTwUoJqfExWaAFchlSRpd2iIoggblHJ2NLbddYxiMFs0bM9NGveAJeCZealmk AmyIyPYbn41whaZl2zXUFQNRZUQadSpFkOJQ3H8A8M2pK1F1lgxgBH11wH95Vs78CUqM jnmO4v/v7rUK0MiOYKB07qNivfNSoSXbsGsaXFTyNv1Qjbz1uAdrXKG9uEVl9CJRghPp w+jAHcwrpFkQ8cFofTUX/GCALdZbr3MO24xRizd0WCRAafCOTW4jKkmma0gO1fDkOX60 3fGQ== 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=UkiXTvcYIjL5MBEPBm/dbODciT7l3Brm0vp/qoJVn1E=; b=JEc5cQoRvAqFruWg68at4aZiGbYC2xyIA/jYovgUQhz+WvMqSt4qE56cl7zvBGXbYY tShfTGksZCkSJHGvJlcNp3mZiYuhpx5E9QW5Bd2ct3X+pjqkZf7W7ZtZruAVJyyBqAIi iK4w2ZdHblbIGYgRUhqtt0t3J7otrIltwfiDblAj3zHEbvDwtSJYCsT5pDTxGot3En4m I1QxgkqzDxn0OwdFkz7dV2xiXAtAahCuer2OqWlY9E3ES1rXmilm7V0sCa+Pm25+m8IO 0ScpT9xvkaXTl/V6R6ECEAEbs8bKo5oL23ndcjg93s+rRx36p8rU69UYx6yjg0ynAwd/ IvIg== 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 i13-v6si13062729pgh.642.2018.07.24.22.02.34; Tue, 24 Jul 2018 22:02:50 -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 S1728190AbeGYGLg (ORCPT + 99 others); Wed, 25 Jul 2018 02:11:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35504 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727753AbeGYGLg (ORCPT ); Wed, 25 Jul 2018 02:11:36 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2C82A81DE7; Wed, 25 Jul 2018 05:01:42 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D45A5608F0; Wed, 25 Jul 2018 05:01:40 +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 227464BB78; Wed, 25 Jul 2018 05:01:40 +0000 (UTC) Date: Wed, 25 Jul 2018 01:01:39 -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, 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, imammedo@redhat.com, pbonzini@redhat.com, dan j williams , nilal@redhat.com Message-ID: <399916154.53931292.1532494899706.JavaMail.zimbra@redhat.com> In-Reply-To: <783786ae-2e85-2376-448c-1e362c3d4d48@redhat.com> References: <20180713075232.9575-1-pagupta@redhat.com> <20180713075232.9575-4-pagupta@redhat.com> <783786ae-2e85-2376-448c-1e362c3d4d48@redhat.com> Subject: Re: [Qemu-devel] [RFC v3] 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.58, 10.4.195.24] Thread-Topic: qemu: Add virtio pmem device Thread-Index: tzndw2ejgZ89fltK2iTGg78W32mpFA== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 25 Jul 2018 05:01:42 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eric, > > On 07/13/2018 02:52 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. > > > > Changes from RFC v2: > > This patch has no n/M in the subject line; but is included in a thread > that also has a 0/2 cover letter, as well as 1/2 and 2/2 patches in > separate mails. Is that intentional? Yes, kernel series has 0-2 patches and Qemu has this one. I thought its good to keep separate numbering for both the sets. > > When sending revision notes on a specific patch, it's best to place them... Sure. > > > - Use aio_worker() to avoid Qemu from hanging with blocking fsync > > call - Stefan > > - Use virtio_st*_p() for endianess - Stefan > > - Correct indentation in qapi/misc.json - Eric > > > > Signed-off-by: Pankaj Gupta > > --- > > ...here, after the --- separator. They are useful to reviewers on the > list, but are stripped by 'git am' as they don't need to be part of the > git history (a year from now, we won't care how many iterations the > patch went through during review, only what actually landed). > > > > +++ b/qapi/misc.json > > @@ -2907,6 +2907,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 > > There is no 2.13 release, and you've missed the 3.0 window. Please > update this and any other version reference to 3.1. okay. Thanks, Pankaj