]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Terminate early if task_switch_16/32 failed
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 14 Apr 2010 13:50:57 +0000 (15:50 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:44 +0000 (12:17 +0300)
commitff46a63dde52cdf86d40df920b9fc30d5988b68d
tree55e8a204260c2a301c8da281b52bfef15f21bc1c
parentb7ff05ab2934e1536493e81801d447551f373e0b
KVM: x86: Terminate early if task_switch_16/32 failed

Stop the switch immediately if task_switch_16/32 returned an error. Only
if that step succeeded, the switch should actually take place and update
any register states.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c