Go to the source code of this file.
|
int | xendom_add_to_physmap (int domid, unsigned long idx, unsigned int space, xen_pfn_t gpfn) |
| Add mapping for specified page frame in Xen domain physmap.
|
|
int | xendom_add_to_physmap_batch (int domid, int foreign_domid, unsigned int space, unsigned int size, xen_ulong_t *idxs, xen_pfn_t *gpfns, int *errs) |
| Add mapping for specified set of page frames to Xen domain physmap.
|
|
int | xendom_remove_from_physmap (int domid, xen_pfn_t gpfn) |
| Removes page frame from Xen domain physmap.
|
|
int | xendom_populate_physmap (int domid, unsigned int extent_order, unsigned int nr_extents, unsigned int mem_flags, xen_pfn_t *extent_start) |
| Populate specified Xen domain page frames with memory.
|
|
◆ xendom_add_to_physmap()
Add mapping for specified page frame in Xen domain physmap.
- Parameters
-
domid | domain id, where mapping will be added. For unprivileged should be DOMID_SELF. |
idx | index into space being mapped. |
space | XENMAPSPACE_* mapping space identifier. |
gpfn | page frame where the source mapping page should appear. |
- Returns
- zero on success, negative errno on error.
◆ xendom_add_to_physmap_batch()
Add mapping for specified set of page frames to Xen domain physmap.
- Parameters
-
domid | domain id, where mapping will be added. For unprivileged should be DOMID_SELF. |
foreign_domid | for gmfn_foreign - domain id, whose pages being mapped, 0 for other. |
space | XENMAPSPACE_* mapping space identifier. |
size | number of page frames being mapped. |
idxs | array of indexes into space being mapped. |
gpfns | array of page frames where the mapping should appear. |
errs | array of per-index error codes. |
- Returns
- zero on success, negative errno on error.
◆ xendom_populate_physmap()
Populate specified Xen domain page frames with memory.
- Parameters
-
domid | domain id, where mapping will be added. For unprivileged should be DOMID_SELF. |
extent_order | size/alignment of each extent (size is 2^extent_order), e.g. 0 for 4K extents, 9 for 2M etc. |
nr_extents | number of page frames being populated. |
mem_flags | N/A, should be 0 for Arm. |
extent_start | page frame bases of extents to populate with memory. |
- Returns
- number of populated frames success, negative errno on error.
◆ xendom_remove_from_physmap()
int xendom_remove_from_physmap |
( |
int | domid, |
|
|
xen_pfn_t | gpfn ) |
Removes page frame from Xen domain physmap.
- Parameters
-
domid | domain id, whose page is going to be removed. For unprivileged should be DOMID_SELF. |
gpfn | page frame number, that needs to be removed |
- Returns
- zero on success, negative errno on error.