]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user/elfload: Simplify vma_dump_size
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 27 Feb 2024 16:47:49 +0000 (06:47 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 21:03:52 +0000 (11:03 -1000)
commit1928d50bec7ef7956499e408ac3a501f02c57c47
treeaedb1991ceab3b1cb392d0644fb90fe9bf712ae8
parentb4c7ab816b48e0d2dd15753c0329bd4aa59f713f
linux-user/elfload: Simplify vma_dump_size

Use the flags that we've already saved in order to test
accessibility.  Use g2h_untagged and compare guest memory
directly instead of copy_from_user.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c