From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Date: Mon, 31 Oct 2011 13:38:05 +0000 Subject: Re: [PATCH 13/14] KVM: PPC: E500: Support hugetlbfs Message-Id: <4EAEA4BD.7020707@redhat.com> List-Id: References: <1320047596-20577-1-git-send-email-agraf@suse.de> <1320047596-20577-14-git-send-email-agraf@suse.de> In-Reply-To: <1320047596-20577-14-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexander Graf Cc: kvm-ppc@vger.kernel.org, kvm list , Marcelo Tosatti On 10/31/2011 09:53 AM, Alexander Graf wrote: > 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. > > > @@ -673,12 +674,31 @@ static inline void kvmppc_e500_shadow_map(struct kvmppc_vcpu_e500 *vcpu_e500, > pfn &= ~(tsize_pages - 1); > break; > } > + } else if (vma && hva >= vma->vm_start && > + (vma->vm_flags & VM_HUGETLB)) { > + unsigned long psize = vma_kernel_pagesize(vma); > Leading spaces spotted. -- error compiling committee.c: too many arguments to function