qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] linux-user/mmap.c: Use end instead of real_end


From: Riku Voipio
Subject: Re: [Qemu-devel] [PATCH] linux-user/mmap.c: Use end instead of real_end in target_mmap
Date: Mon, 11 Jan 2016 15:03:23 +0200
User-agent: Trojita/0.5-git; Qt/5.5.1; xcb; Linux; Debian GNU/Linux testing (stretch)

On torstaina 24. joulukuuta 2015 11.54.09 EET, Laurent Vivier wrote:

Le 24/12/2015 02:07, address@hidden a écrit :
From: Chen Gang <address@hidden>

In this case, real_end is larger than end, which may cause mmap_frag
process the incorrect memory region.

Signed-off-by: Chen Gang <address@hidden>
--- ...

The fragment must effectively be mapped only to "end" not to "real_end"
(which is a host page aligned address, and thus this is not a fragment).
It is consistent with what it is done in the case of one single page.

Reviewed-by: Laurent Vivier <address@hidden>

Applied with changing the patch comment to Laurent's explanation.

Riku




reply via email to

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