]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Fix handling of pending signal on uninitialized AP
authorJan H. Schönherr <jschoenh@amazon.de>
Tue, 5 Sep 2017 22:27:19 +0000 (00:27 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 13 Sep 2017 14:40:23 +0000 (16:40 +0200)
commit58e9ae6ab04c7ba49a13f0fedfd07e1703224eb4
tree011af08d77e91bafc4f933ddc7a56ae730504fe7
parent001474d226a3c33025291bcd30f824d9737d97be
KVM: x86: Fix handling of pending signal on uninitialized AP

KVM API says that KVM_RUN will return with -EINTR when a signal is
pending. However, if a vCPU is in KVM_MP_STATE_UNINITIALIZED, then
the return value is unconditionally -EAGAIN.

Copy over some code from vcpu_run(), so that the case of a pending
signal results in the expected return value.

Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c