mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 07:32:06 -06:00
qga:/qga-win: skip getting pci info for USB disks
Skip getting PCI info from disks type USB and give them an empty PCI address instead. Signed-off-by: Kfir Manor <kfir@daynix.com> Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
This commit is contained in:
parent
8e12ec8ee3
commit
cce910f219
1 changed files with 8 additions and 4 deletions
|
@ -874,11 +874,15 @@ static void get_single_disk_info(int disk_number,
|
||||||
* if that doesn't hold since that suggests some other unexpected
|
* if that doesn't hold since that suggests some other unexpected
|
||||||
* breakage
|
* breakage
|
||||||
*/
|
*/
|
||||||
|
if (disk->bus_type == GUEST_DISK_BUS_TYPE_USB) {
|
||||||
|
disk->pci_controller = get_empty_pci_address();
|
||||||
|
} else {
|
||||||
disk->pci_controller = get_pci_info(disk_number, &local_err);
|
disk->pci_controller = get_pci_info(disk_number, &local_err);
|
||||||
if (local_err) {
|
if (local_err) {
|
||||||
error_propagate(errp, local_err);
|
error_propagate(errp, local_err);
|
||||||
goto err_close;
|
goto err_close;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (disk->bus_type == GUEST_DISK_BUS_TYPE_SCSI
|
if (disk->bus_type == GUEST_DISK_BUS_TYPE_SCSI
|
||||||
|| disk->bus_type == GUEST_DISK_BUS_TYPE_IDE
|
|| disk->bus_type == GUEST_DISK_BUS_TYPE_IDE
|
||||||
|| disk->bus_type == GUEST_DISK_BUS_TYPE_RAID
|
|| disk->bus_type == GUEST_DISK_BUS_TYPE_RAID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue