Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5123154yba; Wed, 10 Apr 2019 11:51:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqmXfzD/zLp146rZPbM+ielOqMqo2Rf2mNr+6HyphPElIA9FhKfyxHGtEEBTPVHRFtEcOr X-Received: by 2002:a17:902:8d97:: with SMTP id v23mr11109209plo.298.1554922287089; Wed, 10 Apr 2019 11:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554922287; cv=none; d=google.com; s=arc-20160816; b=EEurtt++rhNAKVieXxDmDAvZjTDuUZKK85hv9OwMU0j88+MNvZ6fj499EXVibtHici 7XfmPpLOLAIGjZve/NPH2aMWRMCorKOzaqKax8VNglZ+BMK1W5jw/MtmfDbM8tAh4klp sEz7GGx4hFAk6+oNOK80ljNP+/ajqtK4wiPluMcnyOoyCTw2m6RhfBzbhsshzgl46peQ ExQcscxYsvlOFerUEumJO62zvORmcMYbIklT2zczO2bShmd1t26zsJ5Egf64wUerAr99 xU4fqXOlMlKxamaSkGM6CUy3A0MwDjOxY0bpZFbT5BdvPUK7dGyzpg6BT9q6VvzZf9iG 32tQ== 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:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=wTZgbHHgkuc02Ro6e9QqtN7TkTJsuUpWH/R1Yu8H+2c=; b=Jd5utgEc6CEXD9liga/ibMpkQfHVvcluFaxwqHuFvwMiewdiW6Atxeh5xhKOjfvMUG UDKpqc1r5osiGCWF7b+yQfQWKEPGb5cvXytEMPblqMe69YZUsUec1ezBjv0OfBXmfEt9 I3hyl3SOCpiwnM/JVJaZ39PpyFu59jr2QReOVcv7950BmbTYAaEfsocREoH6Rs8mved0 S0rxXnBEvFLay+oEbgqRl1Tx6M3raK1MxIkz+Aaf6ZQr/DWRgJWdGHVincjcG9xNoVP+ rZCI62bSsZqdUyde8utGXvpDEuWTesMEJkTFec92hORv8RbalnkHO9M7CNFzmVXBttLk w6xg== 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 k9si16097035pfb.251.2019.04.10.11.51.11; Wed, 10 Apr 2019 11:51:27 -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 S2387933AbfDJQqS (ORCPT + 99 others); Wed, 10 Apr 2019 12:46:18 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:36423 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387808AbfDJQqR (ORCPT ); Wed, 10 Apr 2019 12:46:17 -0400 Received: by mail-qt1-f195.google.com with SMTP id s15so3680367qtn.3 for ; Wed, 10 Apr 2019 09:46:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wTZgbHHgkuc02Ro6e9QqtN7TkTJsuUpWH/R1Yu8H+2c=; b=KdHprQD0e6Pmuf0IxQtzqiIldIhp7+aA96neNlOjaQoJgzTanh2n/MEUBtogRMogm5 kilIwRnsiOvia0d8c+CY8IBf6Fn+QK8Ebh8JABWpLt/ouqVmvT43F9hJLdsT2FyvpoXq hWzNwXRZ9WcImxkR59dDnka1p8FbU4akN7bMGheUBp7DHH/ezzpYV80K/YtBzqsO6MU9 cgsgyAuRS5TDP255SOhKyMZKLWogcWZ9epkQ4CLj13NXbNlkwYHrqUkByrnEbRshS5Bz OeAhbCbBWxicoNGC/hbhkn9imR/ZtV70Y/rdENbyLCALx8NkmBbipluKXRvhyFkh84Ic 6HoA== X-Gm-Message-State: APjAAAXxU+onccyENHHZqE2UoHaJKO1qC6arf72jpT2xaCMFIU32W7Bz pJqKvC0s933MgJe3TJ90QsLcmg== X-Received: by 2002:a0c:d167:: with SMTP id c36mr26941640qvh.1.1554914776715; Wed, 10 Apr 2019 09:46:16 -0700 (PDT) Received: from redhat.com (pool-173-76-246-42.bstnma.fios.verizon.net. [173.76.246.42]) by smtp.gmail.com with ESMTPSA id h24sm24983836qte.50.2019.04.10.09.46.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 09:46:15 -0700 (PDT) Date: Wed, 10 Apr 2019 12:46:12 -0400 From: "Michael S. Tsirkin" To: Cornelia Huck Cc: Pankaj Gupta , 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: <20190410124114-mutt-send-email-mst@kernel.org> 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> <20190410163139.4a04175e.cohuck@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190410163139.4a04175e.cohuck@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 04:31:39PM +0200, Cornelia Huck wrote: > 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... No but I think they ship their's already. No one ships pmem so it's less pain for everyone if we just skip 25. > (And yes, we need to be quicker with voting on/applying id > reservations :/) We can't vote on what was not proposed for a vote. At the moment that responsibility is with the commented once discussion on the comment has taken place. I think what's missing is a description of the process in the README. Want to write it up and post it? -- MST