]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Fix immediate_exit handling for uninitialized AP
authorJan H. Schönherr <jschoenh@amazon.de>
Wed, 6 Sep 2017 16:34:06 +0000 (18:34 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 13 Sep 2017 14:40:24 +0000 (16:40 +0200)
commit1aa026415f3a1767bc1be061a67e64911354d7aa
treed01b370f149fcd13d0f8d75ed226cf5b32f7ed31
parent58e9ae6ab04c7ba49a13f0fedfd07e1703224eb4
KVM: x86: Fix immediate_exit handling for uninitialized AP

When user space sets kvm_run->immediate_exit, KVM is supposed to
return quickly. However, when a vCPU is in KVM_MP_STATE_UNINITIALIZED,
the value is not considered and the vCPU blocks.

Fix that oversight.

Fixes: 28d96ced7f78b33 ("KVM: race-free exit from KVM_RUN without POSIX signals")
Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c