blob: edc9797667f50ef8153c87e997949da64957b748 [file] [log] [blame]
Wedson Almeida Filho3fcbcff2018-07-10 23:53:39 +01001#ifndef _API_H
2#define _API_H
3
4#include "cpu.h"
5#include "vm.h"
6
7/* TODO: Can we hide these? */
8extern struct vm secondary_vm[MAX_VMS];
9extern uint32_t secondary_vm_count;
10extern struct vm primary_vm;
11
12int32_t api_vm_get_count(void);
13int32_t api_vcpu_get_count(uint32_t vm_idx);
14int32_t api_vcpu_run(uint32_t vm_idx, uint32_t vcpu_idx, struct vcpu **next);
15struct vcpu *api_wait_for_interrupt(void);
16
17#endif /* _API_H */