Re: [PATCH v3 10/21] linux-user: Fix guest_addr_valid vs reserved_va

2021-01-19 Thread Richard Henderson
On 1/19/21 7:03 AM, Peter Maydell wrote: > On Fri, 15 Jan 2021 at 22:47, Richard Henderson > wrote: >> >> We must always use GUEST_ADDR_MAX, because even 32-bit hosts can >> use -R to restrict the memory address of the guest. >> >> Signed-off-by: Richard Henderson >> --- >> include/exec/cpu_lds

Re: [PATCH v3 10/21] linux-user: Fix guest_addr_valid vs reserved_va

2021-01-19 Thread Peter Maydell
On Fri, 15 Jan 2021 at 22:47, Richard Henderson wrote: > > We must always use GUEST_ADDR_MAX, because even 32-bit hosts can > use -R to restrict the memory address of the guest. > > Signed-off-by: Richard Henderson > --- > include/exec/cpu_ldst.h | 9 - > 1 file changed, 4 insertions(+)

[PATCH v3 10/21] linux-user: Fix guest_addr_valid vs reserved_va

2021-01-15 Thread Richard Henderson
We must always use GUEST_ADDR_MAX, because even 32-bit hosts can use -R to restrict the memory address of the guest. Signed-off-by: Richard Henderson --- include/exec/cpu_ldst.h | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/exec/cpu_ldst.h b/include/exec/c