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)
commit19d04437267f00c7b50343513693b7a3174ff908
tree004f50464c662ee472b03149678bc3ca8af461c8
parent5b7e0102ae744e9175b905f4267a81393bdb7a75
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