Thread (12 messages) flat view 12 messages, 2 authors, 2015-07-07

Re: [RFC PATCH 6/6] powerpc/kvm: change the condition of identifying hugetlb vm

From: Scott Wood <hidden>
Date: 2015-07-07 19:47:41
Also in: kvm, linux-fsdevel, linux-mm, lkml

On Tue, 2015-07-07 at 16:05 +0800, wenwei tao wrote:
Hi Scott

I understand what you said.

I will use the function 'is_vm_hugetlb_page()' to hide the bit
combinations according to your comments in the next version of patch
set.

But for the situation like below, there isn't an obvious structure
'vma', using 'is_vm_hugetlb_page()' maybe costly or even not possible.
void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start,
                unsigned long end, unsigned long vmflag)
{
    ...

    if (end == TLB_FLUSH_ALL || tlb_flushall_shift == -1
                    || vmflag & VM_HUGETLB) {
        local_flush_tlb();
        goto flush_all;
    }
...
}
Add a function that operates on the flags directly, then.

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help