Re: [Qemu-devel] [PATCH v2] util/mmap-alloc: fix hugetlb support on ppc64

2015-12-02 Thread Rik van Riel
On 12/02/2015 03:04 PM, Michael S. Tsirkin wrote: > Since commit 8561c9244ddf1122d "exec: allocate PROT_NONE pages on top of > RAM", it is no longer possible to back guest RAM with hugepages on ppc64 > hosts: > > mmap(NULL, 285212672, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = > 0x3fff5700

Re: [Qemu-devel] [PATCH v2] util/mmap-alloc: fix hugetlb support on ppc64

2015-12-02 Thread Greg Kurz
On Wed, 2 Dec 2015 22:04:53 +0200 "Michael S. Tsirkin" wrote: > Since commit 8561c9244ddf1122d "exec: allocate PROT_NONE pages on top of > RAM", it is no longer possible to back guest RAM with hugepages on ppc64 > hosts: > > mmap(NULL, 285212672, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = >

[Qemu-devel] [PATCH v2] util/mmap-alloc: fix hugetlb support on ppc64

2015-12-02 Thread Michael S. Tsirkin
Since commit 8561c9244ddf1122d "exec: allocate PROT_NONE pages on top of RAM", it is no longer possible to back guest RAM with hugepages on ppc64 hosts: mmap(NULL, 285212672, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3fff5700 mmap(0x3fff5700, 268435456, PROT_READ|PROT_WRITE, MAP_PRI