qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] mark host pages as reserved


From: Magnus Damm
Subject: [Qemu-devel] [PATCH] mark host pages as reserved
Date: Wed, 5 Dec 2007 17:45:03 +0900

Hi all,

This patch teaches the user space emulator about host pages. It marks
present host page mappings with PAGE_RESERVED so mmap_find_vma()
properly can detect that pages at mmap_next_start should be skipped
over instead of being overwritten using mmap(). Without this patch I
experience crashes with the arm or sh4 user space emulator together
with sbox2. This combination sometimes result in that host libraries
are mapped into the qemu process space starting from 0x4xxxxxxx
instead of 0xb7xxxxxx. This together with the initial value of
mmap_next_start results in a segfault when the elf loader overwrites
the mapped host libraries with the target binary.

Comments anyone?

/ magnus

Attachment: qemu-cvs-20071205b-reserve-host-pages.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]