]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e83ef3b57ada368f16334094a99a53652863b38
tree44641116820afb0b14f05ce643889c60ed024dab
parent6a6fd69a95c787d2858bc5ca2018547cd4b341fb
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