commit | 987c0ff61c3b95845b2a2491e3f9a848b0c36ec7 | [log] [tgz] |
---|---|---|
author | Wedson Almeida Filho <wedsonaf@google.com> | Wed Jun 20 16:34:38 2018 +0100 |
committer | Wedson Almeida Filho <wedsonaf@google.com> | Thu Jun 28 15:09:42 2018 +0100 |
tree | 8f29452c208a8fd8f9f5cf5c7d87e7ebc4e380d4 |
Initial commit.
diff --git a/inc/vm.h b/inc/vm.h new file mode 100644 index 0000000..aa9133c --- /dev/null +++ b/inc/vm.h
@@ -0,0 +1,14 @@ +#ifndef _VM_H +#define _VM_H + +#include "cpu.h" + +struct vm { + struct vcpu vcpus[MAX_CPUS]; + struct arch_page_table page_table; +}; + +void vm_init(struct vm *vm, struct cpu *cpus); +void vm_start_vcpu(struct vm *vm, size_t index, size_t entry, size_t arg); + +#endif /* _VM_H */