Daniel Oram 00b8702581 qdev: Fix assert in PCI address property when used by vfio-pci
Allow the PCIHostDeviceAddress structure to work as the host property
in vfio-pci when it has it's default value of all fields set to ~0. In
this form the property indicates a non-existant device but given the
field bit sizes gets asserted as excess (and invalid) precision
overflows the string buffer. The BDF of an invalid device
"FFFF:FF:FF.F" is returned instead.

Signed-off-by: Daniel Oram <daniel.oram@gmail.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Message-Id: <71f06765c4ba16dcd71cbf78e877619948f04ed9.1478777270.git.daniel.oram@gmail.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2016-11-15 15:50:04 -02:00
..
2016-09-08 18:05:22 +04:00
2016-01-29 15:07:25 +00:00
2016-01-29 15:07:25 +00:00
2016-11-01 19:21:09 +02:00
2016-01-29 15:07:25 +00:00
2016-05-23 16:53:46 +02:00
2016-01-29 15:07:25 +00:00
2016-11-01 19:21:09 +02:00
2016-01-29 15:07:25 +00:00
2016-05-19 16:42:30 +02:00