Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
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
>
16
#include <
zephyr/xen/public/memory.h
>
17
#include <
zephyr/xen/public/xen.h
>
18
25
38
int
xendom_add_to_physmap
(
int
domid,
unsigned
long
idx,
unsigned
int
space,
39
xen_pfn_t
gpfn);
40
57
int
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
70
int
xendom_remove_from_physmap
(
int
domid,
xen_pfn_t
gpfn);
71
87
int
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
106
int
xendom_acquire_resource
(
domid_t
domid,
uint16_t
type,
uint32_t
id
,
uint64_t
frame,
107
uint32_t
*nr_frames,
xen_pfn_t
*frame_list);
108
110
111
#endif
/* ZEPHYR_XEN_MEMORY_H_ */
xen_pfn_t
uint64_t xen_pfn_t
Definition
arch-arm.h:204
xen_ulong_t
uint64_t xen_ulong_t
Definition
arch-arm.h:214
xendom_acquire_resource
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.
xendom_populate_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 guest frames with memory.
xendom_add_to_physmap
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.
xendom_add_to_physmap_batch
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.
xendom_remove_from_physmap
int xendom_remove_from_physmap(int domid, xen_pfn_t gpfn)
Remove a mapping from a domain physmap.
kernel.h
Public kernel APIs.
memory.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:91
uint16_t
__UINT16_TYPE__ uint16_t
Definition
stdint.h:89
xen.h
domid_t
uint16_t domid_t
Definition
xen.h:217
zephyr
xen
memory.h
Generated on
for Zephyr API by
1.17.0