[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 8/9] linux-user: Align mmap_find_vma to host page
From: |
Laurent Vivier |
Subject: |
[Qemu-devel] [PULL v2 8/9] linux-user: Align mmap_find_vma to host page size |
Date: |
Fri, 24 May 2019 13:25:19 +0200 |
From: Richard Henderson <address@hidden>
This can avoid stack allocation failures for i386 guest
on ppc64 (64k page) host.
Suggested-by: Laurent Vivier <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
linux-user/mmap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index 10796b37ac7b..af41339d576b 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -262,6 +262,8 @@ abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size,
abi_ulong align)
abi_ulong addr;
int wrapped, repeat;
+ align = MAX(align, qemu_host_page_size);
+
/* If 'start' == 0, then a default start address is used. */
if (start == 0) {
start = mmap_next_start;
--
2.20.1
- [Qemu-devel] [PULL v2 0/9] Linux user for 4.1 patches, Laurent Vivier, 2019/05/24
- [Qemu-devel] [PULL v2 3/9] linux-user: Fix support for SIOCATMARK and SIOCGPGRP ioctls for xtensa, Laurent Vivier, 2019/05/24
- [Qemu-devel] [PULL v2 1/9] linux-user: add pseudo /proc/cpuinfo for sparc, Laurent Vivier, 2019/05/24
- [Qemu-devel] [PULL v2 4/9] linux-user: Add support for SIOCSPGRP ioctl for all targets, Laurent Vivier, 2019/05/24
- [Qemu-devel] [PULL v2 8/9] linux-user: Align mmap_find_vma to host page size,
Laurent Vivier <=
- [Qemu-devel] [PULL v2 5/9] linux-user: Add support for SIOC<G|S>IFPFLAGS ioctls for all targets, Laurent Vivier, 2019/05/24
- [Qemu-devel] [PULL v2 2/9] linux-user: add pseudo /proc/hardware for m68k, Laurent Vivier, 2019/05/24
- [Qemu-devel] [PULL v2 7/9] linux-user: Fix shmat emulation by honoring host SHMLBA, Laurent Vivier, 2019/05/24
- [Qemu-devel] [PULL v2 9/9] linux-user: Pass through nanosecond timestamp components for stat syscalls, Laurent Vivier, 2019/05/24
- [Qemu-devel] [PULL v2 6/9] linux-user: Sanitize interp_info and, for mips only, init field fp_abi, Laurent Vivier, 2019/05/24
- Re: [Qemu-devel] [PULL v2 0/9] Linux user for 4.1 patches, Peter Maydell, 2019/05/24