]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-win32.c
qga-win: fsinfo: pci-info: allow partial info
authorSameeh Jubran <sjubran@redhat.com>
Tue, 23 Oct 2018 11:23:14 +0000 (13:23 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 31 Oct 2018 14:04:20 +0000 (09:04 -0500)
commit6880b94f8a53e34833bf895b3004b2e48c0ffe74
treeab7827209519a13df8b3502aab7251fdf7cdc948
parent0d7f937e2a3ef6d80e8cb3d2cbca95f7365b451e
qga-win: fsinfo: pci-info: allow partial info

The call to SetupDiGetDeviceRegistryProperty might fail because the
value doesn't exist in the registry, in this case we shouldn't exit from
the loop but instead continue to look for other available values in the
registry and set this value as unavailable (-1).

Signed-off-by: Sameeh Jubran <sjubran@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
*squash in fix for when get_pci_info() returns NULL pci_controller field
*fix handling for error_set() cases in get_pci_info(), not just NULL return
*force all -1 PCI addr fields if any single one of them isn't found
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-win32.c