Skip to content
Snippets Groups Projects
Commit 5a954e02 authored by Kfir Manor's avatar Kfir Manor Committed by Konstantin Kostiuk
Browse files

qga/linux: add usb support to guest-get-fsinfo


Signed-off-by: default avatarKfir Manor <kfir@daynix.com>
Reviewed-by: default avatarKonstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: default avatarKonstantin Kostiuk <kkostiuk@redhat.com>
parent 044f8cf7
No related branches found
No related tags found
No related merge requests found
......@@ -879,7 +879,9 @@ static bool build_guest_fsinfo_for_pci_dev(char const *syspath,
g_str_equal(driver, "sym53c8xx") ||
g_str_equal(driver, "virtio-pci") ||
g_str_equal(driver, "ahci") ||
g_str_equal(driver, "nvme"))) {
g_str_equal(driver, "nvme") ||
g_str_equal(driver, "xhci_hcd") ||
g_str_equal(driver, "ehci-pci"))) {
break;
}
......@@ -976,6 +978,8 @@ static bool build_guest_fsinfo_for_pci_dev(char const *syspath,
}
} else if (strcmp(driver, "nvme") == 0) {
disk->bus_type = GUEST_DISK_BUS_TYPE_NVME;
} else if (strcmp(driver, "ehci-pci") == 0 || strcmp(driver, "xhci_hcd") == 0) {
disk->bus_type = GUEST_DISK_BUS_TYPE_USB;
} else {
g_debug("unknown driver '%s' (sysfs path '%s')", driver, syspath);
goto cleanup;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment