x86: vmm: Track state for handling vmexits as KERNEL
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 23 Aug 2017 14:24:01 +0000 (10:24 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 25 Aug 2017 18:41:49 +0000 (14:41 -0400)
commit193d2642c9d53363ef24082e6f3a006666e51f72
tree0b8e96735f18f8b556319f3efa03b11e39fe3b67
parent7444a7d6cac452ca15265051015bbc844764fab4
x86: vmm: Track state for handling vmexits as KERNEL

When we vmexited, we didn't set the cpu state to KERNEL, keeping it as
USER.  This would show up in mpstat as higher USER time.

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