-Jailhouse Interface for Cells
-=============================
+Hypervisor Interface for Cells
+==============================
The Jailhouse hypervisor provides two kinds of interfaces to interact with its
cells during runtime. One is a set of hypercalls which cells can be invoked
Obtain information about specific hypervisor states.
-This hypercall can only be issued on CPUs belonging to the root cell.
-
Arguments: 1. Information type:
0 - number of pages in hypervisor memory pool
1 - used pages of hypervisor memory pool
Return code: requested value (>=0) or negative error code
Possible errors are:
- -EPERM (-1) - hypercall was issued over a non-root cell
-EINVAL (-22) - invalid information type
long hypervisor_get_info(struct per_cpu *cpu_data, unsigned long type)
{
- if (cpu_data->cell != &linux_cell)
- return -EPERM;
-
switch (type) {
case JAILHOUSE_INFO_MEM_POOL_SIZE:
return mem_pool.pages;