snu-csl / nvmevirt

NVMeVirt: A Versatile Software-defined Virtual NVMe Device
Other
182 stars 54 forks source link

Listing nvmevirt device using xnvme #25

Closed MarcusParadies closed 9 months ago

MarcusParadies commented 9 months ago

Hi!

I've been playing around with nvmevirt and wanted to create a small demo app using xnvme and nvmevirt. I can create a virtual device and see it through lsblk and sudo nvme list.

When I try to issue sudo xnvme enum, the execution blocks for a few seconds, then lists the device. When I then run sudo nvme list again, the output look like this:

image

The virtual device is still somehow there but not functional anymore. I was wondering whether anyone has experienced something like this before. Was also wondering if this issue is related to nvmevirt or xnvme.

Thanks!

beowulf commented 9 months ago

NVMeVirt only expects that the host queries device identity with 0x05 and 0x06 CNS value for ZNS SSD not for general SSD. However xnvme tool utilizes the feature, making the exception

MarcusParadies commented 9 months ago

Thanks a lot!