Re: [PATCH 13/14] KVM: PPC: E500: Support hugetlbfs

Alexander Graf
2011-11-10T14:24:03Z

On 10/31/2011 02:38 PM, Avi Kivity wrote:
> 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.

Oh no! You really do read whitespace :).

Alex