]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
core: Remove caller restriction from Hypervisor Get Info hypercall
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 11 Mar 2014 11:32:59 +0000 (12:32 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Tue, 11 Mar 2014 11:32:59 +0000 (12:32 +0100)
There is no sensitive information to hide here. Rather, we want to be
able to use this hypercall also from non-root cells, e.g. to monitor the
system setup progress.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Documentation/hypervisor-interfaces.txt
hypervisor/control.c

index de95c2eb3adac733110e78532e9e0e1bffd3f2e9..c8790e5f6f370a82b2f62e4e675763783f2e2f21 100644 (file)
@@ -1,5 +1,5 @@
-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
@@ -107,8 +107,6 @@ Hypercall "Hypervisor Get Info" (code 3)
 
 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
@@ -118,7 +116,6 @@ Arguments: 1. Information type:
 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
 
 
index 4ba4a7eb4982c6f7ef594a1c7c19ff234e985708..18042b509342ee9228ffd456df23601638f0a11a 100644 (file)
@@ -468,9 +468,6 @@ int shutdown(struct per_cpu *cpu_data)
 
 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;