public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
From: Damien Le Moal <dlemoal@kernel.org>
To: Jaehoon Shim <jmattshim@gmail.com>, lsf-pc@lists.linux-foundation.org
Cc: linux-nvme@lists.infradead.org
Subject: Re: [LSF/MM/BPF TOPIC] Adding NVMeVirt to Kernel mainline
Date: Thu, 22 Feb 2024 16:10:34 +0900	[thread overview]
Message-ID: <53d746b8-a24e-45ac-ab70-c0a0cae6f4eb@kernel.org> (raw)
In-Reply-To: <CABj8AyhLjBkQUhp4CFY+xV4_GwDAyzU251St+BMoYUKCjj7M9Q@mail.gmail.com>

On 2/22/24 10:38, Jaehoon Shim wrote:
> Hi all,
> 
> My research group has recently introduced NVMeVirt, a software-defined
> virtual NVMe device implemented as a Linux kernel module. Upon
> loading, NVMeVirt emulates an NVMe device that is recognized by the
> host as a native PCIe device.
> - https://github.com/snu-csl/nvmevirt
> - https://www.usenix.org/system/files/fast23-kim.pdf
> 
> Advantages of NVMeVirt are:
> - Deployable in real environments (not virtual)
> - PCI peer-to-peer DMA support
> - Low-latency device support
> - Multiple namespace support (each namespace can support different command sets)
> - Multiple device support
> - Various command set support (currently supporting ZNS and KV)
> - Accurate performance emulation
> 
> What if we can simplify NVMeVirt and add it to the Kernel mainline
> just like the scsi_debug in the SCSI driver? This would offer an
> accessible tool for developers, especially when NVMe devices with
> specific spec are unavailable, to develop and debug the NVMe driver
> functionalities.

Qemu emulates nvme devices fairly well already.

What is the backing store for you kernel module nvme emulation ? Memory only ?
files or block device ? If it is the latter, how can you do "Accurate
performance emulation". And what does "Accurate performance emulation" mean
anyway ? Different NVMe drives from the same or different vendors have different
performance characteristics. So what exactly are you emulating here ?

> 
> Best regards,
> Jaehoon
> 

-- 
Damien Le Moal
Western Digital Research



  reply	other threads:[~2024-02-22  7:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-22  1:38 [LSF/MM/BPF TOPIC] Adding NVMeVirt to Kernel mainline Jaehoon Shim
2024-02-22  7:10 ` Damien Le Moal [this message]
2024-02-23  5:38   ` Jaehoon Shim
2024-02-22 15:56 ` Keith Busch
2024-02-23  5:45   ` Jaehoon Shim

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=53d746b8-a24e-45ac-ab70-c0a0cae6f4eb@kernel.org \
    --to=dlemoal@kernel.org \
    --cc=jmattshim@gmail.com \
    --cc=linux-nvme@lists.infradead.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    /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