summaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorPeter Crosthwaite2015-03-17 06:35:54 +0100
committerPaolo Bonzini2015-03-18 12:09:42 +0100
commitc3c1bb99d1c11978d9ce94d1bdcf0705378c1459 (patch)
tree4389c54ae07345591dfadb0b30d528df3e29711f /scripts/switch-timer-api
parentvirtio-scsi-dataplane: fix memory leak in virtio_scsi_vring_init (diff)
downloadqemu-c3c1bb99d1c11978d9ce94d1bdcf0705378c1459.tar.gz
qemu-c3c1bb99d1c11978d9ce94d1bdcf0705378c1459.tar.xz
qemu-c3c1bb99d1c11978d9ce94d1bdcf0705378c1459.zip
exec: Respect as_tranlsate_internal length clamp
address_space_translate_internal will clamp the *plen length argument based on the size of the memory region being queried. The iommu walker logic in addresss_space_translate was ignoring this by discarding the post fn call value of *plen. Fix by just always using *plen as the length argument throughout the fn, removing the len local variable. This fixes a bootloader bug when a single elf section spans multiple QEMU memory regions. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Message-Id: <1426570554-15940-1-git-send-email-peter.crosthwaite@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions