[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/6] qga/linux: add usb support to guest-get-fsinfo
|
From: |
Konstantin Kostiuk |
|
Subject: |
[PULL 1/6] qga/linux: add usb support to guest-get-fsinfo |
|
Date: |
Thu, 4 May 2023 12:56:52 +0300 |
From: Kfir Manor <kfir@daynix.com>
Signed-off-by: Kfir Manor <kfir@daynix.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
qga/commands-posix.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 079689d79a..97754930c1 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -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;
--
2.25.1
- [PULL 0/6] Misc QGA patches, Konstantin Kostiuk, 2023/05/04
- [PULL 1/6] qga/linux: add usb support to guest-get-fsinfo,
Konstantin Kostiuk <=
- [PULL 3/6] qga: Add `merged` variant to GuestExecCaptureOutputMode, Konstantin Kostiuk, 2023/05/04
- [PULL 2/6] qga: Refactor guest-exec capture-output to take enum, Konstantin Kostiuk, 2023/05/04
- [PULL 4/6] qga: test: Add tests for `merged` flag, Konstantin Kostiuk, 2023/05/04
- [PULL 5/6] qga/commands-win32.c: Drop the check for _WIN32_WINNT >= 0x0601, Konstantin Kostiuk, 2023/05/04
- [PULL 6/6] qga: Fix suspend on Linux guests without systemd, Konstantin Kostiuk, 2023/05/04
- Re: [PULL 0/6] Misc QGA patches, Richard Henderson, 2023/05/04
- Re: [PULL 0/6] Misc QGA patches, Richard Henderson, 2023/05/05