VMM: init the vmexit counters when initing the VMM
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 25 Jan 2016 16:42:08 +0000 (11:42 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 2 Feb 2016 22:43:52 +0000 (17:43 -0500)
commitd0d03e35e13794fe9b378944f4b52981cac4d088
tree2da15e671b51613a9f011732f37de51150f50fb4
parenta88b3c60517fc9cb784b6f34e780da64e95dbe40
VMM: init the vmexit counters when initing the VMM

Previously, this was just done during the first vmctl command
(REG_RSP_RIP_CR3).  It's really a "once per VMM per process" thing.  In the
future, we could add commands to reset the counters or something.  Still,
the initial initialization should be when setting up the VMM in the first
place.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/vmm/intel/vmx.c
kern/arch/x86/vmm/vmm.c
kern/arch/x86/vmm/vmm.h