KVM: VMX: Move VMREAD cleanup to exception handler
authorAvi Kivity <avi@redhat.com>
Sun, 15 May 2011 14:13:12 +0000 (10:13 -0400)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:00 +0000 (11:45 +0300)
commit5e520e62787afd8fc28626fd8d4f77491135119d
tree44641116820afb0b14f05ce643889c60ed024dab
parent7b105ca2903b84f023c49965d9a511c5e55256dc
KVM: VMX: Move VMREAD cleanup to exception handler

We clean up a failed VMREAD by clearing the output register.  Do
it in the exception handler instead of unconditionally.  This is
worthwhile since there are more than a hundred call sites.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c