KVM: VMX: free vpid when fail to create vcpu
authorLai Jiangshan <laijs@cn.fujitsu.com>
Sat, 17 Apr 2010 08:41:47 +0000 (16:41 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:19:10 +0000 (12:19 +0300)
commitcdbecfc398a904ce9f5c126638b09a2429fb86ed
treeeb28bdd09dab5809af17a7e49e3a720fcff95ce2
parentb83d4a9cfc81503a082331cc5d1e480d99f3a531
KVM: VMX: free vpid when fail to create vcpu

Fix bug of the exception path, free allocated vpid when fail
to create vcpu.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c