Re: [PATCH] KVM: PPC: E500: Support hugetlbfs

2011-10-05 Thread Scott Wood
On 10/05/2011 01:55 PM, Alexander Graf wrote: > > On 05.10.2011, at 18:06, Scott Wood wrote: > >> Any reason for __ilog2() rather than ilog2()? Shouldn't make a >> difference, just curious about avoiding the public interface. > > I grep'ed through the kernel tree and only found __ilog2 defined

Re: [PATCH] KVM: PPC: E500: Support hugetlbfs

2011-10-05 Thread Alexander Graf
On 05.10.2011, at 18:06, Scott Wood wrote: > On 10/05/2011 09:37 AM, Alexander Graf wrote: >> diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c >> index ec17148..1dd96a9 100644 >> --- a/arch/powerpc/kvm/e500_tlb.c >> +++ b/arch/powerpc/kvm/e500_tlb.c >> @@ -24,6 +24,7 @@ >> #

Re: [PATCH] KVM: PPC: E500: Support hugetlbfs

2011-10-05 Thread Scott Wood
On 10/05/2011 09:37 AM, Alexander Graf wrote: > diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c > index ec17148..1dd96a9 100644 > --- a/arch/powerpc/kvm/e500_tlb.c > +++ b/arch/powerpc/kvm/e500_tlb.c > @@ -24,6 +24,7 @@ > #include > #include > #include > +#include > #

[PATCH] KVM: PPC: E500: Support hugetlbfs

2011-10-05 Thread Alexander Graf
With hugetlbfs support emerging on e500, we should also support KVM backing its guest memory by it. This patch adds support for hugetlbfs into the e500 shadow mmu code. Signed-off-by: Alexander Graf --- v1 -> v2: - address scott's comments --- arch/powerpc/kvm/e500_tlb.c | 24 +++