From: Rik van Riel <riel@redhat.com>
To: Pankaj Gupta <pagupta@redhat.com>,
Dan Williams <dan.j.williams@intel.com>
Cc: linux-kernel@vger.kernel.org, KVM list <kvm@vger.kernel.org>,
Qemu Developers <qemu-devel@nongnu.org>,
linux-nvdimm <linux-nvdimm@ml01.01.org>,
Linux MM <linux-mm@kvack.org>, Jan Kara <jack@suse.cz>,
Stefan Hajnoczi <stefanha@redhat.com>,
Haozhong Zhang <haozhong.zhang@intel.com>,
Nitesh Narayan Lal <nilal@redhat.com>,
Kevin Wolf <kwolf@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Ross Zwisler <ross.zwisler@intel.com>,
David Hildenbrand <david@redhat.com>,
Xiao Guangrong <xiaoguangrong.eric@gmail.com>
Subject: Re: [RFC 2/2] KVM: add virtio-pmem driver
Date: Thu, 12 Oct 2017 18:27:29 -0400 [thread overview]
Message-ID: <1507847249.21121.207.camel@redhat.com> (raw)
In-Reply-To: <1363955128.19944709.1507846719987.JavaMail.zimbra@redhat.com>
On Thu, 2017-10-12 at 18:18 -0400, Pankaj Gupta wrote:
> >
> > On Thu, Oct 12, 2017 at 2:25 PM, Pankaj Gupta <pagupta@redhat.com>
> > wrote:
> > >
> > > > > A This patch adds virtio-pmem driver for KVM guest.
> > > > > A Guest reads the persistent memory range information
> > > > > A over virtio bus from Qemu and reserves the range
> > > > > A as persistent memory. Guest also allocates a block
> > > > > A device corresponding to the pmem range which later
> > > > > A can be accessed with DAX compatible file systems.
> > > > > A Idea is to use the virtio channel between guest and
> > > > > A host to perform the block device flush for guest pmem
> > > > > A DAX device.
> > > > >
> > > > > A There is work to do including DAX file system support
> > > > > A and other advanced features.
> > > > >
> > > > > Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
> > > > > ---
> > > > > A drivers/virtio/KconfigA A A A A A A A A A A |A A 10 ++
> > > > > A drivers/virtio/MakefileA A A A A A A A A A |A A A 1 +
> > > > > A drivers/virtio/virtio_pmem.cA A A A A | 322
> > > > > A +++++++++++++++++++++++++++++++++++++++
> > > > > A include/uapi/linux/virtio_pmem.h |A A 55 +++++++
> > > > > A 4 files changed, 388 insertions(+)
> > > > > A create mode 100644 drivers/virtio/virtio_pmem.c
> > > > > A create mode 100644 include/uapi/linux/virtio_pmem.h
> > > > >
> > > > > diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
> > > > > index cff773f15b7e..0192c4bda54b 100644
> > > > > --- a/drivers/virtio/Kconfig
> > > > > +++ b/drivers/virtio/Kconfig
> > > > > @@ -38,6 +38,16 @@ config VIRTIO_PCI_LEGACY
> > > > >
> > > > > A A A A A A A A A A If unsure, say Y.
> > > > >
> > > > > +config VIRTIO_PMEM
> > > > > +A A A A A A A tristate "Virtio pmem driver"
> > > > > +A A A A A A A depends on VIRTIO
> > > > > +A A A A A A A ---help---
> > > > > +A A A A A A A A This driver adds persistent memory range within a
> > > > > KVM guest.
With "Virtio Block Backed Pmem" we could name the config
option VIRTIO_BLOCK_PMEM
The documentation text could make it clear to people that the
image shows up as a disk image on the host, but as a pmem
memory range in the guest.
> > > > I think we need to call this something other than persistent
> > > > memory to
> > > > make it clear that this not memory where the persistence can be
> > > > managed from userspace. The persistence point always requires
> > > >
> > So currently /proc/iomem in a guest with a pmem device attached to
> > a
> > namespace looks like this:
> >
> > A A A A c00000000-13bfffffff : Persistent Memory
> > A A A A A A A c00000000-13bfffffff : namespace2.0
> >
> > Can we call it "Virtio Shared Memory" to make it clear it is a
> > different beast than typical "Persistent Memory"?A A You can likely
>
> I think somewhere we need persistent keyword 'Virtio Persistent
> Memory' orA
> so.
Still hoping for better ideas than "Virtio Block Backed Pmem" :)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2017-10-12 22:27 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-12 15:50 [RFC 0/2] KVM "fake DAX" device flushing Pankaj Gupta
2017-10-12 15:50 ` [RFC 1/2] pmem: Move reusable code to base header files Pankaj Gupta
2017-10-12 20:42 ` Dan Williams
2017-10-12 21:27 ` [Qemu-devel] " Pankaj Gupta
2017-10-12 15:50 ` [RFC 2/2] KVM: add virtio-pmem driver Pankaj Gupta
2017-10-12 20:51 ` Dan Williams
2017-10-12 21:25 ` Pankaj Gupta
2017-10-12 21:54 ` Dan Williams
2017-10-12 22:18 ` Pankaj Gupta
2017-10-12 22:27 ` Rik van Riel [this message]
2017-10-12 22:39 ` Pankaj Gupta
2017-10-12 22:52 ` Pankaj Gupta
2017-10-12 22:59 ` Dan Williams
2017-10-12 23:07 ` Pankaj Gupta
2017-10-13 9:44 ` Stefan Hajnoczi
2017-10-13 10:48 ` Pankaj Gupta
2017-10-16 14:47 ` Stefan Hajnoczi
2017-10-16 15:58 ` Dan Williams
2017-10-16 17:04 ` Pankaj Gupta
2017-10-13 15:25 ` Dan Williams
2017-10-17 7:16 ` Christoph Hellwig
2017-10-17 7:40 ` [Qemu-devel] " Pankaj Gupta
2017-10-17 8:02 ` Christoph Hellwig
2017-10-17 8:30 ` Pankaj Gupta
2017-10-18 13:03 ` Stefan Hajnoczi
2017-10-18 15:51 ` Dan Williams
2017-10-19 8:01 ` Stefan Hajnoczi
2017-10-19 8:01 ` Christoph Hellwig
2017-10-19 18:21 ` Dan Williams
2017-10-20 8:00 ` Christoph Hellwig
2017-10-20 15:05 ` Dan Williams
2017-10-20 16:06 ` Christoph Hellwig
2017-10-20 16:11 ` Dan Williams
2017-10-12 15:50 ` [RFC] QEMU: Add virtio pmem device Pankaj Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1507847249.21121.207.camel@redhat.com \
--to=riel@redhat.com \
--cc=dan.j.williams@intel.com \
--cc=david@redhat.com \
--cc=haozhong.zhang@intel.com \
--cc=jack@suse.cz \
--cc=kvm@vger.kernel.org \
--cc=kwolf@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-nvdimm@ml01.01.org \
--cc=nilal@redhat.com \
--cc=pagupta@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=ross.zwisler@intel.com \
--cc=stefanha@redhat.com \
--cc=xiaoguangrong.eric@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).