|
#define | ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page)) |
|
#define | PGD_LIST_OFFSET ((PTRS_PER_PGD * sizeof(pgd_t)) - sizeof(struct list_head)) |
|
#define | pgd_to_list(pgd) ((struct list_head *)((char *)(pgd) + PGD_LIST_OFFSET)) |
|
#define | list_to_pgd(list) ((pgd_t *)((char *)(list) - PGD_LIST_OFFSET)) |
|
#define | FIRST_USER_ADDRESS 0 |
|
#define | _PAGE_PRESENT HV_PTE_PRESENT |
|
#define | _PAGE_HUGE_PAGE HV_PTE_PAGE |
|
#define | _PAGE_SUPER_PAGE HV_PTE_SUPER |
|
#define | _PAGE_READABLE HV_PTE_READABLE |
|
#define | _PAGE_WRITABLE HV_PTE_WRITABLE |
|
#define | _PAGE_EXECUTABLE HV_PTE_EXECUTABLE |
|
#define | _PAGE_ACCESSED HV_PTE_ACCESSED |
|
#define | _PAGE_DIRTY HV_PTE_DIRTY |
|
#define | _PAGE_GLOBAL HV_PTE_GLOBAL |
|
#define | _PAGE_USER HV_PTE_USER |
|
#define | _PAGE_ALL |
|
#define | PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED) |
|
#define | PAGE_SHARED |
|
#define | PAGE_SHARED_EXEC |
|
#define | PAGE_COPY_NOEXEC __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | _PAGE_READABLE) |
|
#define | PAGE_COPY_EXEC |
|
#define | PAGE_COPY PAGE_COPY_NOEXEC |
|
#define | PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED | _PAGE_READABLE) |
|
#define | PAGE_READONLY_EXEC |
|
#define | _PAGE_KERNEL_RO (_PAGE_PRESENT | _PAGE_GLOBAL | _PAGE_READABLE | _PAGE_ACCESSED) |
|
#define | _PAGE_KERNEL (_PAGE_KERNEL_RO | _PAGE_WRITABLE | _PAGE_DIRTY) |
|
#define | _PAGE_KERNEL_EXEC (_PAGE_KERNEL_RO | _PAGE_EXECUTABLE) |
|
#define | PAGE_KERNEL __pgprot(_PAGE_KERNEL) |
|
#define | PAGE_KERNEL_RO __pgprot(_PAGE_KERNEL_RO) |
|
#define | PAGE_KERNEL_EXEC __pgprot(_PAGE_KERNEL_EXEC) |
|
#define | page_to_kpgprot(p) PAGE_KERNEL |
|
#define | __P000 PAGE_NONE |
|
#define | __P001 PAGE_READONLY |
|
#define | __P010 PAGE_COPY /* this is write-only, which we won't support */ |
|
#define | __P011 PAGE_COPY |
|
#define | __P100 PAGE_READONLY_EXEC |
|
#define | __P101 PAGE_READONLY_EXEC |
|
#define | __P110 PAGE_COPY_EXEC |
|
#define | __P111 PAGE_COPY_EXEC |
|
#define | __S000 PAGE_NONE |
|
#define | __S001 PAGE_READONLY |
|
#define | __S010 PAGE_SHARED |
|
#define | __S011 PAGE_SHARED |
|
#define | __S100 PAGE_READONLY_EXEC |
|
#define | __S101 PAGE_READONLY_EXEC |
|
#define | __S110 PAGE_SHARED_EXEC |
|
#define | __S111 PAGE_SHARED_EXEC |
|
#define | _PAGE_TABLE _PAGE_PRESENT |
|
#define | pgprot_modify(oldprot, newprot) (pgprot_t) { ((oldprot).val & ~_PAGE_ALL) | (newprot).val } |
|
#define | pte_pgprot(x) hv_pte_set_pa((x), 0) |
|
#define | pte_clear(mm, addr, ptep) __pte_clear(ptep) |
|
#define | pte_present hv_pte_get_present |
|
#define | pte_mknotpresent hv_pte_clear_present |
|
#define | pte_user hv_pte_get_user |
|
#define | pte_read hv_pte_get_readable |
|
#define | pte_dirty hv_pte_get_dirty |
|
#define | pte_young hv_pte_get_accessed |
|
#define | pte_write hv_pte_get_writable |
|
#define | pte_exec hv_pte_get_executable |
|
#define | pte_huge hv_pte_get_page |
|
#define | pte_super hv_pte_get_super |
|
#define | pte_rdprotect hv_pte_clear_readable |
|
#define | pte_exprotect hv_pte_clear_executable |
|
#define | pte_mkclean hv_pte_clear_dirty |
|
#define | pte_mkold hv_pte_clear_accessed |
|
#define | pte_wrprotect hv_pte_clear_writable |
|
#define | pte_mksmall hv_pte_clear_page |
|
#define | pte_mkread hv_pte_set_readable |
|
#define | pte_mkexec hv_pte_set_executable |
|
#define | pte_mkdirty hv_pte_set_dirty |
|
#define | pte_mkyoung hv_pte_set_accessed |
|
#define | pte_mkwrite hv_pte_set_writable |
|
#define | pte_mkhuge hv_pte_set_page |
|
#define | pte_mksuper hv_pte_set_super |
|
#define | pte_special(pte) 0 |
|
#define | pte_mkspecial(pte) (pte) |
|
#define | pte_set_forcecache hv_pte_set_client0 |
|
#define | pte_get_forcecache hv_pte_get_client0 |
|
#define | pte_clear_forcecache hv_pte_clear_client0 |
|
#define | pte_set_anyhome hv_pte_set_client1 |
|
#define | pte_get_anyhome hv_pte_get_client1 |
|
#define | pte_clear_anyhome hv_pte_clear_client1 |
|
#define | pte_migrating hv_pte_get_migrating |
|
#define | pte_mkmigrate(x) hv_pte_set_migrating(hv_pte_clear_present(x)) |
|
#define | pte_donemigrate(x) hv_pte_set_present(hv_pte_clear_migrating(x)) |
|
#define | pte_ERROR(e) pr_err("%s:%d: bad pte 0x%016llx.\n", __FILE__, __LINE__, pte_val(e)) |
|
#define | pgd_ERROR(e) pr_err("%s:%d: bad pgd 0x%016llx.\n", __FILE__, __LINE__, pgd_val(e)) |
|
#define | set_pte_at(mm, addr, ptep, pteval) set_pte(ptep, pteval) |
|
#define | set_pte_atomic(pteptr, pteval) set_pte(pteptr, pteval) |
|
#define | pte_page(x) pfn_to_page(pte_pfn(x)) |
|
#define | _PAGE_FILE HV_PTE_CLIENT1 |
|
#define | PTE_FILE_MAX_BITS 32 |
|
#define | pte_file(pte) (hv_pte_get_client1(pte) && !hv_pte_get_client0(pte)) |
|
#define | pte_to_pgoff(pte) ((pte).val >> 32) |
|
#define | pgoff_to_pte(off) ((pte_t) { (((long long)(off)) << 32) | _PAGE_FILE }) |
|
#define | __swp_type(swp) ((swp).val & 0x1f) |
|
#define | __swp_offset(swp) ((swp).val >> 5) |
|
#define | __swp_entry(type, off) ((swp_entry_t) { (type) | ((off) << 5) }) |
|
#define | __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).val >> 32 }) |
|
#define | __swp_entry_to_pte(swp) ((pte_t) { (((long long) ((swp).val)) << 32) }) |
|
#define | mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) |
|
#define | pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) |
|
#define | pgd_offset(mm, address) ((mm)->pgd + pgd_index(address)) |
|
#define | pgd_offset_k(address) pgd_offset(&init_mm, address) |
|
#define | pte_offset_map(dir, address) pte_offset_kernel(dir, address) |
|
#define | pte_unmap(pte) do { } while (0) |
|
#define | kpte_clear_flush(ptep, vaddr) |
|
#define | update_mmu_cache(vma, address, pte) do { } while (0) |
|
#define | io_remap_pfn_range(vma, vaddr, pfn, size, prot) remap_pfn_range(vma, vaddr, pfn, size, prot) |
|
#define | __HAVE_ARCH_PMDP_TEST_AND_CLEAR_YOUNG |
|
#define | __HAVE_ARCH_PMDP_SET_WRPROTECT |
|
#define | __HAVE_ARCH_PMDP_GET_AND_CLEAR |
|
#define | set_pmd_at(mm, addr, pmdp, pmdval) __set_pmd(pmdp, pmdval) |
|
#define | pmd_ptfn(pmd) hv_pte_get_ptfn(pmd_pte(pmd)) |
|
#define | pmd_page(pmd) pfn_to_page(PFN_DOWN(HV_PTFN_TO_CPA(pmd_ptfn(pmd)))) |
|
#define | pmd_mknotpresent(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd))) |
|
#define | pmd_young(pmd) pte_young(pmd_pte(pmd)) |
|
#define | pmd_mkyoung(pmd) pte_pmd(pte_mkyoung(pmd_pte(pmd))) |
|
#define | pmd_mkold(pmd) pte_pmd(pte_mkold(pmd_pte(pmd))) |
|
#define | pmd_mkwrite(pmd) pte_pmd(pte_mkwrite(pmd_pte(pmd))) |
|
#define | pmd_write(pmd) pte_write(pmd_pte(pmd)) |
|
#define | pmd_wrprotect(pmd) pte_pmd(pte_wrprotect(pmd_pte(pmd))) |
|
#define | pmd_mkdirty(pmd) pte_pmd(pte_mkdirty(pmd_pte(pmd))) |
|
#define | pmd_huge_page(pmd) pte_huge(pmd_pte(pmd)) |
|
#define | pmd_mkhuge(pmd) pte_pmd(pte_mkhuge(pmd_pte(pmd))) |
|
#define | __HAVE_ARCH_PMD_WRITE |
|
#define | pfn_pmd(pfn, pgprot) pte_pmd(pfn_pte((pfn), (pgprot))) |
|
#define | pmd_pfn(pmd) pte_pfn(pmd_pte(pmd)) |
|
#define | mk_pmd(page, pgprot) pfn_pmd(page_to_pfn(page), (pgprot)) |
|