Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7117092ybi; Thu, 13 Jun 2019 09:51:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUSIlCc8wrWHQvfu1q3hS2dzcE6B7rONdLHWbp3fjpoiiR3uB3eYjfM1uB5L6mLirji4vV X-Received: by 2002:a63:4c1f:: with SMTP id z31mr32450335pga.334.1560444674824; Thu, 13 Jun 2019 09:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560444674; cv=none; d=google.com; s=arc-20160816; b=FLyony26OBX7iI4RsivPfOuP+miC440HgLuTQAJKPhoiX695yQh7Ze5Ad4zhxG7bI5 TYkfWUH6n4GZ7zm7R9LJyxlZMctaPiE1hW+rcJu7LpNyYVALsgXrHqVLK22X01KisKbi k8HY01XdMPeAYXgPknK2BKPE+kzY8V8zdympscNOexhd/toVsNXX3UqF/2p/SUtUKQkc 4Vsx2r+widfVKFci3kCvM2umCUsFnkgjoa3qklY7rEhoweeaGDQvj1rBavf2W8yg/5yQ 76pD0aavEaospv9JcJQQFEhnu/TZouUW49XGxZcafgPknKUdGkrD7iaXQZ60T7bFoT6s b9UQ== 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; bh=VV56C53b1Ea+qBul8trbqNpkYrkzL+ypOOnlbuzjhsY=; b=D3CaOJDTtQfEf+VxaHP41BG2X9jZLpPIwfbpwl3CrIuFVFPKUXQLk7zdDBTaakCHLf 2T86rzDOQJpFJSRdH7NkIFdssEzUVW20MD7DdSSL/49YA2HLLqPA0w2fl3BH+gYVTzXC kehnZt8tY94eiLsrZyX+V6NkZlibZj9/6Pqd6RPdYG8BxQv+4JaolfjxBM6IVoX2cgLJ OU/fxby16tycmgaWEwFQfjmcFgdkaUrC+5RhQJhsjIJw3xlTV7+1hzOSbQ02dO/sU/81 4Tsx0lrJ5k0m9b62K9nkjlcV2uoMnqQ/hMFavvRfb0f+TboajgQCj6SOYnHa9bdHHLNe sTuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 t17si223995pgu.68.2019.06.13.09.51.00; Thu, 13 Jun 2019 09:51:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 S1725780AbfFMQu6 (ORCPT + 99 others); Thu, 13 Jun 2019 12:50:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56558 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730157AbfFMDmZ (ORCPT ); Wed, 12 Jun 2019 23:42:25 -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 92B14B0ABB; Thu, 13 Jun 2019 03:42:24 +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 6CCCD5DA34; Thu, 13 Jun 2019 03:42:24 +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 300A31806B16; Thu, 13 Jun 2019 03:42:19 +0000 (UTC) Date: Wed, 12 Jun 2019 23:42:18 -0400 (EDT) From: Pankaj Gupta To: Cornelia Huck Cc: rdunlap@infradead.org, jack@suse.cz, kvm@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, david@fromorbit.com, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, dm-devel@redhat.com, adilger kernel , zwisler@kernel.org, aarcange@redhat.com, dave jiang , jstaron@google.com, linux-nvdimm@lists.01.org, vishal l verma , david@redhat.com, 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 , snitzer@redhat.com, darrick wong , rjw@rjwysocki.net, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, imammedo@redhat.com Message-ID: <165204827.34945594.1560397338620.JavaMail.zimbra@redhat.com> In-Reply-To: <20190612162012.06b4af7f.cohuck@redhat.com> References: <20190612124527.3763-1-pagupta@redhat.com> <20190612124527.3763-3-pagupta@redhat.com> <20190612162012.06b4af7f.cohuck@redhat.com> Subject: Re: [Qemu-devel] [PATCH v13 2/7] virtio-pmem: Add virtio pmem driver MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.116.133, 10.4.195.21] Thread-Topic: virtio-pmem: Add virtio pmem driver Thread-Index: fhRQKNWPndesm/uRD8iV/XnY9gJKfQ== 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.38]); Thu, 13 Jun 2019 03:42:24 +0000 (UTC) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org > > > 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 > > Reviewed-by: Yuval Shaia > > Acked-by: Michael S. Tsirkin > > Acked-by: Jakub Staron > > Tested-by: Jakub Staron > > --- > > drivers/nvdimm/Makefile | 1 + > > drivers/nvdimm/nd_virtio.c | 125 +++++++++++++++++++++++++++++++ > > drivers/nvdimm/virtio_pmem.c | 122 ++++++++++++++++++++++++++++++ > > drivers/nvdimm/virtio_pmem.h | 55 ++++++++++++++ > > drivers/virtio/Kconfig | 11 +++ > > include/uapi/linux/virtio_ids.h | 1 + > > include/uapi/linux/virtio_pmem.h | 35 +++++++++ > > 7 files changed, 350 insertions(+) > > create mode 100644 drivers/nvdimm/nd_virtio.c > > create mode 100644 drivers/nvdimm/virtio_pmem.c > > create mode 100644 drivers/nvdimm/virtio_pmem.h > > create mode 100644 include/uapi/linux/virtio_pmem.h > > Reviewed-by: Cornelia Huck Thank you Cornelia for the review. Best regards, Pankaj > >