Only one NVMe device is usable in Windows (10) guest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
Full command: qemu-system-x86_64 -enable-kvm -cpu host -smp cores=4 -m 4G -net bridge -net nic -full-screen -drive file=ovmf_
QEMU version: 2.5.0
Kernel: 4.5.1 (Arch Linux)
When there are two NVMe devices specified, only the second one will be usable in Windows. The following error is shown under "Device status" of the failed NVMe controller in Device Manager:
"This device cannot start. (Code 10)
The I/O device is configured incorrectly or the configuration parameters to the driver are incorrect."
The only thing seems suspicious to me is that the nvme emulation in qemu does not have WWN/EUI-64 set for the devices, though I have no idea at all whether that is mandatory:
"C:\Windows\
Device Identification VPD page:
Addressed logical unit:
designator type: SCSI name string, code set: UTF-8
SCSI name string:
8086QEMU NVMe Ctrl 00012BDAC262CF8
C:\Windows\
Unit serial number VPD page:
Unit serial number: 0000_0000_
You can see from the "SCSI name string" that the working NVMe device is the second one specified in the command.