Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
memory.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: Apache-2.0 */
2/*
3 * Copyright (c) 2023 EPAM Systems
4 */
5
6#ifndef ZEPHYR_XEN_MEMORY_H_
7#define ZEPHYR_XEN_MEMORY_H_
8
9#include <zephyr/kernel.h>
12
23int xendom_add_to_physmap(int domid, unsigned long idx, unsigned int space,
24 xen_pfn_t gpfn);
25
40int xendom_add_to_physmap_batch(int domid, int foreign_domid,
41 unsigned int space, unsigned int size,
42 xen_ulong_t *idxs, xen_pfn_t *gpfns, int *errs);
43
53
67int xendom_populate_physmap(int domid, unsigned int extent_order,
68 unsigned int nr_extents, unsigned int mem_flags,
69 xen_pfn_t *extent_start);
70
89 uint32_t *nr_frames, xen_pfn_t *frame_list);
90
91#endif /* ZEPHYR_XEN_MEMORY_H_ */
uint64_t xen_pfn_t
Definition arch-arm.h:204
uint64_t xen_ulong_t
Definition arch-arm.h:214
Public kernel APIs.
int xendom_acquire_resource(domid_t domid, uint16_t type, uint32_t id, uint64_t frame, uint32_t *nr_frames, xen_pfn_t *frame_list)
Acquire a resource mapping for the Xen domain.
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.
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.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
uint16_t domid_t
Definition xen.h:217