VMM: Add struct virtual_machine, use it in MMIO
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 25 Apr 2016 19:49:59 +0000 (15:49 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 May 2016 21:11:15 +0000 (17:11 -0400)
commitd765ea3d80c7e3fa59945dea0982fc9fdf937521
tree8980ce99f55e11b8f11319f6db3f6ff80da1179a
parent4f7d047bc40da0aa9b203432dda1bdc85aee35c1
VMM: Add struct virtual_machine, use it in MMIO

As a whole, we'll need to track the overall state of the virtual machine.
That's what the struct virtual_machine is for.  Over time, we'll add more
bits to it, such as the memory mapping.

All VMM threads will know about their VM.  We'll need to track that
throughout the VMM.  MMIO creates threads, so it'll need to pass that
along.  (We might be able to infer it from current_uthread, but we're
already passing a guest_thread *).

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/vmm/include/vmm/vmm.h
user/vmm/virtio-mmio.c