qga/linux: add usb support to guest-get-fsinfo
PATCH v2 1/1 qga/linux: add usb support to guest-get-fsinfo
Signed-off-by Kfir Manor <[email protected]>
--- qga/commands-posix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
qga/commands-posix.c +5 -1
@@ -880,7 +880,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; }
@@ -977,6 +979,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;
Signature · 1 line
2.38.1
Reviewed-by Konstantin Kostiuk <[email protected]>
Quoted 36 lines · Kfir Manor
Signed-off-by Kfir Manor <[email protected]>--- qga/commands-posix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)qga/commands-posix.c +5
-1@@ -880,7 +880,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; }@@ -977,6 +979,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.38.1
What's the status of this patch ? It was acked 2 months ago but AFAICT it was never merged.
Quoted 25 lines · Konstantin Kostiuk
Reviewed-by Konstantin Kostiuk <[email protected]>Quoted 21 lines · Kfir Manor
Signed-off-by Kfir Manor <[email protected]>--- qga/commands-posix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)qga/commands-posix.c +3
-1@@ -880,7 +880,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; }
Quoted 15 lines
Quoted 11 lines
qga/commands-posix.c +2
-0@@ -977,6 +979,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;Quoted 4 lines
--
2.38.1
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|