summaryrefslogtreecommitdiffstats
path: root/qga
diff options
context:
space:
mode:
authorKonstantin Kostiuk2022-05-24 17:43:44 +0200
committerKonstantin Kostiuk2022-05-25 11:12:02 +0200
commitb9a002609fd887447eca8ee10777690d691f91d4 (patch)
tree6afde69e1c1f909fe530510fd390b2d8780f125d /qga
parenttests: Bump Fedora image version for cross-compilation (diff)
downloadqemu-b9a002609fd887447eca8ee10777690d691f91d4.tar.gz
qemu-b9a002609fd887447eca8ee10777690d691f91d4.tar.xz
qemu-b9a002609fd887447eca8ee10777690d691f91d4.zip
qga-win32: Add support for NVME bus type
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>
Diffstat (limited to 'qga')
-rw-r--r--qga/commands-win32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/qga/commands-win32.c b/qga/commands-win32.c
index dcdeb76a68..36f94c0f9c 100644
--- a/qga/commands-win32.c
+++ b/qga/commands-win32.c
@@ -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
};