KVM: prevent spurious exit to userspace during task switch emulation.
commitacb5451789f21ad51215897bb8f9306a05e8acd4
authorGleb Natapov <gleb@redhat.com>
Thu, 15 Apr 2010 18:03:50 +0000 (15 21:03 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:55 +0000 (17 12:17 +0300)
tree7ab1d73a9b4fbbc82a5a2a98dda701a81c4eaf33
parent6b18493d60e7f54a0feb771fa141b5fcb72ce1e4
KVM: prevent spurious exit to userspace during task switch emulation.

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>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c