vmm: Move the vmcall overrides to the VM struct
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 11 Sep 2017 20:49:57 +0000 (16:49 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 14 Sep 2017 20:38:44 +0000 (16:38 -0400)
commit5e0711a60df84a0e8ef3f746d7dda9f09305701c
tree4f645b380b09118234f1489b0220bdeb66aed5f0
parent250f9f81db2bab8155bad7842956e636021494d5
vmm: Move the vmcall overrides to the VM struct

The proximate cause of this is that vthreads is trying to set this before
creating the thread.  That's relying on the internals of vthreads having
actually made all the threads in advance.

Given that there's probably not a need to have the vmcall per vthread, we
can just do it per VM.  This also puts the vmcall hook right next to the
halt_exit hook.

Further, we don't need to copy the halt_exit hook to the gth either.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tests/dune/dune.c
user/vmm/include/vmm/sched.h
user/vmm/include/vmm/vmm.h
user/vmm/vmexit.c
user/vmm/vthread.c