On Tue, Feb 28, 2017 at 07:12:53PM +1100, Alexey Kardashevskiy wrote: > On 10/02/17 11:41, David Gibson wrote: > > On Thu, Feb 09, 2017 at 12:48:19PM +0100, Paolo Bonzini wrote: > >> > >> > >> On 09/02/2017 06:43, Alexey Kardashevskiy wrote: > >>> On 03/01/17 10:34, David Gibson wrote: > >>>> On Thu, Dec 22, 2016 at 04:22:11PM +1100, Alexey Kardashevskiy wrote: > >>>>> getrampagesize() returns the largest supported page size and mainly > >>>>> used to know if huge pages are enabled. > >>>>> > >>>>> However is implemented in target-ppc/kvm.c and not available > >>>>> in TCG or other architectures. > >>>>> > >>>>> This renames and moves gethugepagesize() to mmap-alloc.c where > >>>>> fd-based analog of it is already implemented. This renames and moves > >>>>> getrampagesize() to exec.c as it seems to be the common place for > >>>>> helpers like this. > >>>>> > >>>>> This first user for it is going to be a spapr-pci-host-bridge which > >>>>> needs to know the largest RAM page size so the guest could try > >>>>> using bigger IOMMU pages to save memory. > >>>>> > >>>>> Signed-off-by: Alexey Kardashevskiy <a...@ozlabs.ru> > >>>> > >>>> Reviewed-by: David Gibson <da...@gibson.dropbear.id.au> > >>>> > >>>> Seems sensible to me, but I'm not comfortable merging this via my tree > >>>> since it touches such core code. Probably should go via Paolo. > >>> > >>> Paolo, ping? > >> > >> It's just code movement, go ahead. > > > > Ok, I've merged this in my tree. > > > I cannot find it in any public tree, where did it go?
Bother, I thought I'd applied it, but I seem to have mislaid it. Can you resend it to me please. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature