]> git.proxmox.com Git - mirror_qemu.git/commit
elf-ops.h: Map into memory the ELF to load
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 24 Jul 2019 14:31:04 +0000 (16:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Aug 2019 15:26:18 +0000 (17:26 +0200)
commit816b9fe450220e19acb91a0ce4a8ade7000648d1
tree84134ce29863201f151bd904c455508bc64f5d02
parentfef28891aa401e8f9d048c65f32067f51d695f4e
elf-ops.h: Map into memory the ELF to load

In order to reduce the memory footprint we map into memory
the ELF to load using g_mapped_file_new_from_fd() instead of
reading each sections. In this way we can share the ELF pages
between multiple instances of QEMU.

Suggested-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20190724143105.307042-3-sgarzare@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/hw/elf_ops.h