]> Git Repo - qemu.git/commit
exec: Respect as_tranlsate_internal length clamp
authorPeter Crosthwaite <[email protected]>
Tue, 17 Mar 2015 05:35:54 +0000 (22:35 -0700)
committerPaolo Bonzini <[email protected]>
Wed, 18 Mar 2015 11:09:42 +0000 (12:09 +0100)
commitc3c1bb99d1c11978d9ce94d1bdcf0705378c1459
tree4389c54ae07345591dfadb0b30d528df3e29711f
parent196d4fc56d824ccbbb58714e9ad0793053ef8260
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 <[email protected]>
Message-Id: <1426570554[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
exec.c
This page took 0.025168 seconds and 4 git commands to generate.