summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPrasad J Pandit2016-12-02 12:16:26 +0100
committerMichael S. Tsirkin2016-12-16 00:14:38 +0100
commitd9429b84af2302b6e28bec3c52710cf67eda3cee (patch)
treebd2c363db117e20496965501db75c137cf523ffb /scripts
parenttests/vhost-user-bridge: use contrib/libvhost-user (diff)
downloadqemu-d9429b84af2302b6e28bec3c52710cf67eda3cee.tar.gz
qemu-d9429b84af2302b6e28bec3c52710cf67eda3cee.tar.xz
qemu-d9429b84af2302b6e28bec3c52710cf67eda3cee.zip
i386: amd_iommu: fix MMIO register count and access
IOMMU MMIO registers are divided in two groups by their offsets. Low offsets(<0x2000) registers are grouped into 'amdvi_mmio_low' table and higher offsets(>=0x2000) registers are grouped into 'amdvi_mmio_high' table. No of registers in each table is given by macro 'AMDVI_MMIO_REGS_LOW' and 'AMDVI_MMIO_REGS_HIGH' resp. Values of these two macros were swapped, resulting in an OOB access when reading 'amdvi_mmio_high' table. Correct these two macros. Also read from 'amdvi_mmio_low' table for lower address. Reported-by: Azureyang <azureyang@tencent.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions