]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-win32.c
qga: Fix guest-get-fsinfo PCI address collection in Windows
authorMatt Hines <mhines@scalecomputing.com>
Mon, 28 Jan 2019 22:30:56 +0000 (14:30 -0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 18 Mar 2019 15:48:07 +0000 (10:48 -0500)
commit996b9cdc2f190a173e48f4c8d64de3d50e570b7b
tree9f66c88a6fe959f71fcb315f38baa32c5247185e
parent40cebc58117dbc6275a5d7c4e3ba6611964d9e6e
qga: Fix guest-get-fsinfo PCI address collection in Windows

The Windows QEMU guest agent erroneously tries to collect PCI information
directly from the physical drive. However, windows stores SCSI/IDE information
with the drive and PCI information with the underlying storage controller
This changes get_pci_info to use the physical drive's underlying storage
controller to get PCI information.

* Additionally Fixes incorrect size being passed to DeviceIoControl
  when getting volume extents. Can occasionally crash the guest agent

Signed-off-by: Matt Hines <mhines@scalecomputing.com>
*fix up some checkpatch warnings
*fix domain reporting and add some sanity checks for debug
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
configure
qga/commands-win32.c