KVM: prevent spurious exit to userspace during task switch emulation.
authorGleb Natapov <gleb@redhat.com>
Thu, 15 Apr 2010 18:03:50 +0000 (21:03 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:55 +0000 (12:17 +0300)
If kvm_task_switch() fails code exits to userspace without specifying
exit reason, so the previous exit reason is reused by userspace. Fix
this by specifying exit reason correctly.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

No differences found