Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4916235yba; Wed, 10 Apr 2019 07:34:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6GH+Ae94j3kNsOo/vDaI+E/ojqOkpyMI+qqWwFOZrJspQGqHwKOOjgZrPrkEuTLE9x1Ed X-Received: by 2002:a63:3dca:: with SMTP id k193mr40207941pga.146.1554906882767; Wed, 10 Apr 2019 07:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554906882; cv=none; d=google.com; s=arc-20160816; b=0q85qrwM+ajyYSWL13BMX3alzd2YyiaWfzOuPOATOrNSEAgTQDeoTNVe4R4HbGvYXF i8sHXg0Aqm79wVdOMg4siAnPCbMJEjiK8v4ckUD0QPwvMD8+LPBEsGombInolCxaTZ7j 2YUYerufEK6t8wxA0UPrWwV0G0nUxTdpn/ZBiSJ9af/aN9/ZPxcjvYslMOTw2MPXmivz O1vgBQmFrs4kT1QNKY6+PJ7Kpxe1uz8d419YCTAWSuu/tqohWJU0Op38YfZWC8uyeou7 rD5AID/HP63/gxWeMP5jjUim1z7RKgl9y2cBaXPuY0K7DWgqy2vWIZI/v2Hzh7mQEpgY T2WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=MDzSRT2m1XuOyGHf6co+6sy2GLKyX8bPFm/Jn6YHQiU=; b=hCoWdb83vjLT/3DvfVPkdt83zaaoB2qI7jSivLyGTvvRSNU1jMAXPhSbW7OK1IlfnX 5pC3Cr0zkqLsFbyDeGEZbDX7UQp/9u4s/WiGmHp268C84pO61GbR+94Fr5CqkV+7/noe 3ha2LBZXxZSEzMBsyAhezArZvo4hVx6QO2+/MWahr8DcajXUJ6qZqNebx88MPm0Ce2sJ wZki8BvO2H7HRTWzTXVZcrYdlM+V2/U6mCvQC3ZhnImh7oUxlNSj9ns3zvJG2K0IxdOp WNYHAiJHQICbt1HEjxfdRnFzDjpxWzF8PXbhIWu52xMKzidB5UA1yDCsiicZcWOSTcqQ wkTQ== 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 y5si32426681plp.192.2019.04.10.07.34.25; Wed, 10 Apr 2019 07:34:42 -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 S1732812AbfDJOcP (ORCPT + 99 others); Wed, 10 Apr 2019 10:32:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38056 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732287AbfDJOcO (ORCPT ); Wed, 10 Apr 2019 10:32:14 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E98103082E0F; Wed, 10 Apr 2019 14:32:03 +0000 (UTC) Received: from gondolin (ovpn-204-33.brq.redhat.com [10.40.204.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id E921F19C7E; Wed, 10 Apr 2019 14:31:43 +0000 (UTC) Date: Wed, 10 Apr 2019 16:31:39 +0200 From: Cornelia Huck To: Pankaj Gupta Cc: "Michael S. Tsirkin" , jack@suse.cz, kvm@vger.kernel.org, david@redhat.com, jasowang@redhat.com, david@fromorbit.com, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, adilger kernel , zwisler@kernel.org, aarcange@redhat.com, dave jiang , linux-nvdimm@lists.01.org, vishal l verma , willy@infradead.org, hch@infradead.org, linux-acpi@vger.kernel.org, jmoyer@redhat.com, linux-ext4@vger.kernel.org, lenb@kernel.org, kilobyte@angband.pl, riel@surriel.com, yuval shaia , stefanha@redhat.com, pbonzini@redhat.com, dan j williams , lcapitulino@redhat.com, kwolf@redhat.com, nilal@redhat.com, tytso@mit.edu, xiaoguangrong eric , darrick wong , rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, imammedo@redhat.com Subject: Re: [Qemu-devel] [PATCH v5 2/5] virtio-pmem: Add virtio pmem driver Message-ID: <20190410163139.4a04175e.cohuck@redhat.com> In-Reply-To: <127904196.20807948.1554904981681.JavaMail.zimbra@redhat.com> References: <20190410040826.24371-1-pagupta@redhat.com> <20190410040826.24371-3-pagupta@redhat.com> <20190410091216-mutt-send-email-mst@kernel.org> <127904196.20807948.1554904981681.JavaMail.zimbra@redhat.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Wed, 10 Apr 2019 14:32:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Apr 2019 10:03:01 -0400 (EDT) Pankaj Gupta wrote: > > > > On Wed, Apr 10, 2019 at 09:38:22AM +0530, Pankaj Gupta wrote: > > > This patch adds virtio-pmem driver for KVM guest. > > > > > > 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. > > > > > > This also provides function to perform guest flush over > > > VIRTIO from 'pmem' driver when userspace performs flush > > > on DAX memory range. > > > > > > Signed-off-by: Pankaj Gupta > > > diff --git a/include/uapi/linux/virtio_ids.h > > > b/include/uapi/linux/virtio_ids.h > > > index 6d5c3b2d4f4d..346389565ac1 100644 > > > --- a/include/uapi/linux/virtio_ids.h > > > +++ b/include/uapi/linux/virtio_ids.h > > > @@ -43,5 +43,6 @@ > > > #define VIRTIO_ID_INPUT 18 /* virtio input */ > > > #define VIRTIO_ID_VSOCK 19 /* virtio vsock transport */ > > > #define VIRTIO_ID_CRYPTO 20 /* virtio crypto */ > > > +#define VIRTIO_ID_PMEM 25 /* virtio pmem */ > > > > > > #endif /* _LINUX_VIRTIO_IDS_H */ > > > > Didn't Paolo point out someone is using 25 for audio? > > > Sorry! I did not notice this. > > > > > Please, reserve an ID with the Virtio TC before using it. > > I thought I requested[1] ID 25. > > [1] https://github.com/oasis-tcs/virtio-spec/issues/38 > [2] https://lists.oasis-open.org/archives/virtio-dev/201805/threads.html > > In that case I will send request for next available ID i.e 26? Have the folks using this for audio sent a reservation request as well? If not, I'd say the first requester should get the id... (And yes, we need to be quicker with voting on/applying id reservations :/)