search for: page_pinned

Displaying 1 result from an estimated 1 matches for "page_pinned".

2008 May 31
1
[PATCH] xen: avoid hypercalls when updating unpinned pud/pmd
...ud = xen_set_pud_hyper, .pte_clear = xen_pte_clear, .pmd_clear = xen_pmd_clear, =================================================================== --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c @@ -236,7 +236,14 @@ *u = *update; } -void xen_set_pmd(pmd_t *ptr, pmd_t val) +static bool page_pinned(void *ptr) +{ + struct page *page = virt_to_page(ptr); + + return PagePinned(page); +} + +void xen_set_pmd_hyper(pmd_t *ptr, pmd_t val) { struct mmu_update u; @@ -251,6 +258,18 @@ xen_mc_issue(PARAVIRT_LAZY_MMU); preempt_enable(); +} + +void xen_set_pmd(pmd_t *ptr, pmd_t val) +{ + /* If...