Zephyr API Documentation 4.4.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
11
12#ifndef ZEPHYR_XEN_MEMORY_H_
13#define ZEPHYR_XEN_MEMORY_H_
14
15#include <zephyr/kernel.h>
18
25
38int xendom_add_to_physmap(int domid, unsigned long idx, unsigned int space,
39 xen_pfn_t gpfn);
40
57int xendom_add_to_physmap_batch(int domid, int foreign_domid,
58 unsigned int space, unsigned int size,
59 xen_ulong_t *idxs, xen_pfn_t *gpfns, int *errs);
60
71
87int xendom_populate_physmap(int domid, unsigned int extent_order,
88 unsigned int nr_extents, unsigned int mem_flags,
89 xen_pfn_t *extent_start);
90
107 uint32_t *nr_frames, xen_pfn_t *frame_list);
108
110
111#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
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 Xen-managed resource mapping for a 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 guest frames with memory.
int xendom_add_to_physmap(int domid, unsigned long idx, unsigned int space, xen_pfn_t gpfn)
Add a single mapping to a 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 multiple mappings to a domain physmap.
int xendom_remove_from_physmap(int domid, xen_pfn_t gpfn)
Remove a mapping from a domain physmap.
Public kernel APIs.
__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