#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/spinlock.h>
#include <linux/pfn.h>
#include <linux/mm.h>
#include <asm/uaccess.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <xen/interface/xen.h>
#include <xen/grant_table.h>
#include <xen/features.h>
Go to the source code of this file.
|
unsigned long | get_phys_to_machine (unsigned long pfn) |
|
bool | set_phys_to_machine (unsigned long pfn, unsigned long mfn) |
|
bool __init | early_set_phys_to_machine (unsigned long pfn, unsigned long mfn) |
|
bool | __set_phys_to_machine (unsigned long pfn, unsigned long mfn) |
|
unsigned long | set_phys_range_identity (unsigned long pfn_s, unsigned long pfn_e) |
|
int | m2p_add_override (unsigned long mfn, struct page *page, struct gnttab_map_grant_ref *kmap_op) |
|
int | m2p_remove_override (struct page *page, struct gnttab_map_grant_ref *kmap_op) |
|
struct page * | m2p_find_override (unsigned long mfn) |
|
unsigned long | m2p_find_override_pfn (unsigned long mfn, unsigned long pfn) |
|
void | xen_set_domain_pte (pte_t *ptep, pte_t pteval, unsigned domid) |
|
xmaddr_t | arbitrary_virt_to_machine (void *address) |
|
unsigned long | arbitrary_virt_to_mfn (void *vaddr) |
|
void | make_lowmem_page_readonly (void *vaddr) |
|
void | make_lowmem_page_readwrite (void *vaddr) |
|
#define __pmd_ma |
( |
|
x | ) |
((pmd_t) { (x) } ) |
#define FOREIGN_FRAME_BIT (1UL<<(BITS_PER_LONG-1)) |
#define IDENTITY_FRAME_BIT (1UL<<(BITS_PER_LONG-2)) |
#define INVALID_P2M_ENTRY (~0UL) |
#define MAX_DOMAIN_PAGES ((unsigned long)((u64)CONFIG_XEN_MAX_DOMAIN_MEMORY * 1024 * 1024 * 1024 / PAGE_SIZE)) |
#define pgd_val_ma |
( |
|
x | ) |
((x).pgd) |
#define pmd_val_ma |
( |
|
v | ) |
((v).pmd) |
#define pud_val_ma |
( |
|
v | ) |
((v).pud) |
#define virt_to_machine |
( |
|
v | ) |
(phys_to_machine(XPADDR(__pa(v)))) |
bool __set_phys_to_machine |
( |
unsigned long |
pfn, |
|
|
unsigned long |
mfn |
|
) |
| |
unsigned long arbitrary_virt_to_mfn |
( |
void * |
vaddr | ) |
|
unsigned long get_phys_to_machine |
( |
unsigned long |
pfn | ) |
|
unsigned long m2p_find_override_pfn |
( |
unsigned long |
mfn, |
|
|
unsigned long |
pfn |
|
) |
| |
void make_lowmem_page_readonly |
( |
void * |
vaddr | ) |
|
void make_lowmem_page_readwrite |
( |
void * |
vaddr | ) |
|
unsigned long set_phys_range_identity |
( |
unsigned long |
pfn_s, |
|
|
unsigned long |
pfn_e |
|
) |
| |
bool set_phys_to_machine |
( |
unsigned long |
pfn, |
|
|
unsigned long |
mfn |
|
) |
| |
void xen_set_domain_pte |
( |
pte_t * |
ptep, |
|
|
pte_t |
pteval, |
|
|
unsigned |
domid |
|
) |
| |
unsigned long* machine_to_phys_mapping |
unsigned long machine_to_phys_nr |