qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [patch] linux-user: problem with mmap_find_vma


From: Richard Henderson
Subject: Re: [Qemu-devel] [patch] linux-user: problem with mmap_find_vma
Date: Sun, 13 Dec 2009 20:43:05 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4

On 12/13/2009 08:14 PM, Richard Henderson wrote:
With host x86_64 target alpha, a trivial recompile started producing
"MMU faults". Eventually, I determined that adding "-B 0x100000000" was
enough to produce the fault with the original working executable. I
expect, but have not verified, that a similar failure can be elicited
with any 64-bit host and any target using such a large explicit base.

The cause is that the default address used by mmap_find_vma may not be
inside the area defined for use by the guest by GUEST_BASE. Certainly
this patch fixes the failure I was seeing.

I cannot see though all the macro ugliness to understand what happens
when GUEST_BASE is not in use to know what needs happening there. Please
feel free to edit the ??? comment to match reality.

... Well, while I do think this patch is still a good idea,
since one hardly likes to see things like

  start_stack 0xffffffff04012000

it seems to simply have moved the MMU data fault around; it's back with the rest of the patch set applied. :-(


r~




reply via email to

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