]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: fix emulator_task_switch() return value.
authorGleb Natapov <gleb@redhat.com>
Thu, 15 Apr 2010 09:29:50 +0000 (12:29 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:49 +0000 (12:17 +0300)
commit93b2b63b2e00ee6d5e23815f09ff283b419fc5fd
tree004f50464c662ee472b03149678bc3ca8af461c8
parent74c044fd3645fdf7cae3e63a802b24a75b579474
KVM: fix emulator_task_switch() return value.

emulator_task_switch() should return -1 for failure and 0 for success to
the caller, just like x86_emulate_insn() does.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c