summaryrefslogtreecommitdiffstats
path: root/include/hw/virtio/vhost-user-scsi.h
diff options
context:
space:
mode:
authorMarcel Apfelbaum2018-01-17 20:19:47 +0100
committerMichael S. Tsirkin2018-02-13 17:25:48 +0100
commitfc67208f228af8e444f74362db1bced56a3daa71 (patch)
treeecb6f3d0bdef955a75d6f723c956040ee85afc53 /include/hw/virtio/vhost-user-scsi.h
parentlibvhost-user: Support across-memory-boundary access (diff)
downloadqemu-fc67208f228af8e444f74362db1bced56a3daa71.tar.gz
qemu-fc67208f228af8e444f74362db1bced56a3daa71.tar.xz
qemu-fc67208f228af8e444f74362db1bced56a3daa71.zip
hw/pci-bridge: fix pcie root port's IO hints capability
The gen_pcie_root_port mem-reserve and pref32-reserve properties are defined as size (so uint64_t), but passed as uint32_t when building the 'IO hints' vendor specific capability. Passing 4G (or more) gets truncated and passed as a zero reservation. Is not a huge issue since the guest firmware will always compare the hints with the default value and take the maximum. Fix it by passing the values as uint64_t and failing to init the gen_pcie_root_port id invalid values are used. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/virtio/vhost-user-scsi.h')
0 files changed, 0 insertions, 0 deletions