Enable NVMe start controller for Windows guest.
authorDaniel Stekloff <dan@wendan.org>
Fri, 24 Apr 2015 18:55:42 +0000 (11:55 -0700)
committerKevin Wolf <kwolf@redhat.com>
Thu, 30 Apr 2015 13:35:26 +0000 (15:35 +0200)
commit4a4d614ff56b4cf15e83629946afe51dc116053f
tree3b46d9000db9ad68d3519ea01c45d296f4d301e9
parentc95e4c0e53c774dd82a78ae751ea24f537e38778
Enable NVMe start controller for Windows guest.

Windows seems to send two separate calls to NVMe controller configuration. The
first sends configuration info and the second the enable bit. I couldn't
enable the Windows 8.1 in-box NVMe driver with base Qemu. I made the
following change to store the configuration data and then handle enable and
NVMe driver works on Windows 8.1.

I am not a Windows expert and I'm not entirely sure this is the correct
approach. I'm offering it for anyone who wishes to use NVMe on Windows 8.1
using Qemu.

I have tested this change with Linux and Windows guests with NVMe devices.

Signed-off-by: Daniel Stekloff <dan@wendan.org>
Acked-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/nvme.c