Enable stage-2 MMU.
diff --git a/inc/vm.h b/inc/vm.h
index eb6a386..847d5b7 100644
--- a/inc/vm.h
+++ b/inc/vm.h
@@ -2,15 +2,17 @@
#define _VM_H
#include "cpu.h"
+#include "mm.h"
struct vm {
- struct vcpu vcpus[MAX_CPUS];
+ struct mm_ptable ptable;
uint32_t vcpu_count;
- struct arch_page_table page_table;
+ struct vcpu vcpus[MAX_CPUS];
};
-void vm_init(struct vm *vm, uint32_t vcpu_count);
+bool vm_init(struct vm *vm, uint32_t id, uint32_t vcpu_count);
void vm_start_vcpu(struct vm *vm, size_t index, size_t entry, size_t arg,
bool is_primary);
+void vm_set_current(struct vm *vm);
#endif /* _VM_H */