aboutsummaryrefslogtreecommitdiffstats
path: root/tools/internal/xi_sched_global.c
blob: 0c07455b9c5e54818cca0f94de8502f18a46786d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "hypervisor-ifs/dom0_ops.h"
#include "dom0_defs.h"
#include "mem_defs.h"

static char *argv0 = "internal_domain_sched_global";

int main(int argc, char **argv)
{
    dom0_op_t op;

    if ( argv[0] != NULL ) 
        argv0 = argv[0];

    if ( argc != 2 ) 
    {
        fprintf(stderr, "Usage: %s <ctxt allowance>\n", argv0);
        return 1;
    }

    op.cmd = DOM0_BVTCTL;
    op.u.bvtctl.ctx_allow = atol(argv[1]);
    if ( do_dom0_op(&op) < 0 )
        return 1;

    return 0;
}