VMM: Free VMCSs when appropriate
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 Aug 2016 17:16:03 +0000 (10:16 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 Aug 2016 17:35:11 +0000 (10:35 -0700)
commit0219b201e4be27070b95401a901ac56439ca5d94
treea911c88a8f62e3c742332219665e7f80156b155a
parentf95d8a5d1877831999292edeb564ca17e61454ca
VMM: Free VMCSs when appropriate

Previously we weren't freeing them at all.  Additionally, if we failed
part of the way through a create_guest_pcore, we'd leak the VMCS we
allocated.

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