qga-win32: Add support for NVME bus type
authorKonstantin Kostiuk <kkostiuk@redhat.com>
Tue, 24 May 2022 15:43:44 +0000 (18:43 +0300)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Wed, 25 May 2022 09:12:02 +0000 (12:12 +0300)
Bus type spaces (Indicates a storage spaces bus) is not
supported, so return it as unknown.

Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220524154344.869638-2-kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands-win32.c

index dcdeb76a6835b451fd4c425914c5be3d1384330d..36f94c0f9ca8e6af70cb2303ffdc12a4a641f7d6 100644 (file)
@@ -490,6 +490,11 @@ static GuestDiskBusType win2qemu[] = {
 #if (_WIN32_WINNT >= 0x0601)
     [BusTypeVirtual] = GUEST_DISK_BUS_TYPE_VIRTUAL,
     [BusTypeFileBackedVirtual] = GUEST_DISK_BUS_TYPE_FILE_BACKED_VIRTUAL,
+    /*
+     * BusTypeSpaces currently is not suported
+     */
+    [BusTypeSpaces] = GUEST_DISK_BUS_TYPE_UNKNOWN,
+    [BusTypeNvme] = GUEST_DISK_BUS_TYPE_NVME,
 #endif
 };