|
|
7f1c5b |
From 48f45171b89b8ed24f2b2484d63b00ea7818b5c3 Mon Sep 17 00:00:00 2001
|
|
|
7f1c5b |
From: Kfir Manor <kfir@daynix.com>
|
|
|
7f1c5b |
Date: Sun, 22 Jan 2023 17:33:07 +0200
|
|
|
7f1c5b |
Subject: [PATCH 9/9] qga/linux: add usb support to guest-get-fsinfo
|
|
|
7f1c5b |
|
|
|
7f1c5b |
RH-Author: Kostiantyn Kostiuk <kkostiuk@redhat.com>
|
|
|
7f1c5b |
RH-MergeRequest: 140: qga/linux: add usb support to guest-get-fsinfo
|
|
|
7f1c5b |
RH-Bugzilla: 2149191
|
|
|
7f1c5b |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7f1c5b |
RH-Acked-by: yvugenfi <None>
|
|
|
7f1c5b |
RH-Commit: [1/1] bae929a2d0d0ad20e7308ede69c26499fc2119c7 (kostyanf14/redhat_centos-stream_src_qemu-kvm)
|
|
|
7f1c5b |
|
|
|
7f1c5b |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2149191
|
|
|
7f1c5b |
Upstream patch: https://patchew.org/QEMU/20230122153307.1050593-1-kfir@daynix.com/
|
|
|
7f1c5b |
|
|
|
7f1c5b |
Signed-off-by: Kfir Manor <kfir@daynix.com>
|
|
|
7f1c5b |
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
|
7f1c5b |
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
|
7f1c5b |
---
|
|
|
7f1c5b |
qga/commands-posix.c | 6 +++++-
|
|
|
7f1c5b |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
7f1c5b |
|
|
|
7f1c5b |
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
|
|
|
7f1c5b |
index 32493d6383..f1b2b87c13 100644
|
|
|
7f1c5b |
--- a/qga/commands-posix.c
|
|
|
7f1c5b |
+++ b/qga/commands-posix.c
|
|
|
7f1c5b |
@@ -877,7 +877,9 @@ static bool build_guest_fsinfo_for_pci_dev(char const *syspath,
|
|
|
7f1c5b |
g_str_equal(driver, "sym53c8xx") ||
|
|
|
7f1c5b |
g_str_equal(driver, "virtio-pci") ||
|
|
|
7f1c5b |
g_str_equal(driver, "ahci") ||
|
|
|
7f1c5b |
- g_str_equal(driver, "nvme"))) {
|
|
|
7f1c5b |
+ g_str_equal(driver, "nvme") ||
|
|
|
7f1c5b |
+ g_str_equal(driver, "xhci_hcd") ||
|
|
|
7f1c5b |
+ g_str_equal(driver, "ehci-pci"))) {
|
|
|
7f1c5b |
break;
|
|
|
7f1c5b |
}
|
|
|
7f1c5b |
|
|
|
7f1c5b |
@@ -974,6 +976,8 @@ static bool build_guest_fsinfo_for_pci_dev(char const *syspath,
|
|
|
7f1c5b |
}
|
|
|
7f1c5b |
} else if (strcmp(driver, "nvme") == 0) {
|
|
|
7f1c5b |
disk->bus_type = GUEST_DISK_BUS_TYPE_NVME;
|
|
|
7f1c5b |
+ } else if (strcmp(driver, "ehci-pci") == 0 || strcmp(driver, "xhci_hcd") == 0) {
|
|
|
7f1c5b |
+ disk->bus_type = GUEST_DISK_BUS_TYPE_USB;
|
|
|
7f1c5b |
} else {
|
|
|
7f1c5b |
g_debug("unknown driver '%s' (sysfs path '%s')", driver, syspath);
|
|
|
7f1c5b |
goto cleanup;
|
|
|
7f1c5b |
--
|
|
|
7f1c5b |
2.31.1
|
|
|
7f1c5b |
|