]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/qemu.h
linux-user: Reduce lseek+reads while loading elf files.
authorRichard Henderson <rth@twiddle.net>
Tue, 27 Jul 2010 17:25:30 +0000 (10:25 -0700)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Thu, 29 Jul 2010 06:32:28 +0000 (08:32 +0200)
commit9955ffac9a31aad346fe7f0fcefebe88da7f9df5
tree6717fb9286c007302a39846fd6ecb4be088c0f18
parentd97ef72eed202460a13dfe4a92fd95ac9e6ddf11
linux-user: Reduce lseek+reads while loading elf files.

Define BPRM_BUF_SIZE to 1k and read that amount initially.  If the
data we want from the binary is in this buffer, use it instead of
reading from the file again.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
linux-user/elfload.c
linux-user/linuxload.c
linux-user/qemu.h