vmm: allow a vmm to override the vmcall function
[akaros.git] / user / vmm / include / vmm / sched.h
index a098cf7..567a77e 100644 (file)
@@ -33,6 +33,8 @@ struct guest_thread {
        bool                                            halt_exit;
        uth_mutex_t                                     halt_mtx;
        uth_cond_var_t                          halt_cv;
+       // TODO: work out a real ops strategy.
+       bool (*vmcall)(struct guest_thread *gth, struct vm_trapframe *);
 };
 
 struct ctlr_thread {