From: Stefan Hajnoczi <stefanha@gmail.com>
To: Logan Gunthorpe <logang@deltatee.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Marcel Apfelbaum <marcel@redhat.com>,
qemu-devel@nongnu.org, qemu-block@nongnu.org,
Stephen Bates <sbates@raithlin.com>
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] Added iopmem device emulation
Date: Mon, 7 Nov 2016 10:28:16 +0000 [thread overview]
Message-ID: <20161107102816.GB5036@stefanha-x1.localdomain> (raw)
In-Reply-To: <a9c10c32-9cd8-aa41-0fb7-2dd7cd23e587@deltatee.com>
[-- Attachment #1: Type: text/plain, Size: 2033 bytes --]
On Fri, Nov 04, 2016 at 09:47:33AM -0600, Logan Gunthorpe wrote:
> On 04/11/16 04:49 AM, Stefan Hajnoczi wrote:
> > QEMU already has NVDIMM support (https://pmem.io/). It can be used both
> > for passthrough and fake non-volatile memory:
> >
> > qemu-system-x86_64 \
> > -M pc,nvdimm=on \
> > -m 1024,maxmem=$((4096 * 1024 * 1024)),slots=2 \
> > -object memory-backend-file,id=mem0,mem-path=/tmp/foo,size=$((64 * 1024 * 1024)) \
> > -device nvdimm,memdev=mem0
> >
> > Please explain where iopmem comes from, where the hardware spec is, etc?
>
> Yes, we are aware of nvdimm and, yes, there are quite a few
> commonalities. The difference between nvdimm and iopmem is that the
> memory that backs iopmem is on a PCI device and not connected through
> system memory. Currently, we are working with prototype hardware so
> there is no open spec that I'm aware of but the concept is really
> simple: a single bar directly maps volatile or non-volatile memory.
>
> One of the primary motivations behind iopmem is to provide memory to do
> peer to peer transactions between PCI devices such that, for example, an
> RDMA NIC could transfer data directly to storage and bypass the system
> memory bus all together.
It may be too early to merge this code into qemu.git if there is no
hardware spec and this is a prototype device that is subject to change.
I'm wondering if there is a way to test or use this device if you are
not releasing specs and code that drives the device.
Have you submitted patches to enable this device in Linux, DPDK, or any
other project?
> > Perhaps you could use nvdimm instead of adding a new device?
>
> I'm afraid not. The main purpose of this patch is to enable us to test
> kernel drivers for this type of hardware. If we use nvdimm, there is no
> PCI device for our driver to enumerate and the existing, different,
> NVDIMM drivers would be used instead.
Fair enough, it makes sense to implement a PCI device for this purpose.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2016-11-07 10:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-18 21:55 [Qemu-devel] [PATCH] Added iopmem device emulation Logan Gunthorpe
2016-11-04 10:49 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2016-11-04 15:47 ` Logan Gunthorpe
2016-11-07 10:28 ` Stefan Hajnoczi [this message]
2016-11-07 17:09 ` Logan Gunthorpe
2016-11-08 15:58 ` Stefan Hajnoczi
2016-11-08 16:46 ` Logan Gunthorpe
2016-11-09 9:58 ` Stefan Hajnoczi
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=20161107102816.GB5036@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=kwolf@redhat.com \
--cc=logang@deltatee.com \
--cc=marcel@redhat.com \
--cc=mreitz@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sbates@raithlin.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).