commit | a05950009f50ca971a1d616655d01628177bd2e3 | [log] [tgz] |
---|---|---|
author | Jan H. Schönherr <jschoenh@amazon.de> | Wed Sep 06 00:27:19 2017 +0200 |
committer | Radim Krčmář <rkrcmar@redhat.com> | Wed Sep 13 16:40:23 2017 +0200 |
tree | 011af08d77e91bafc4f933ddc7a56ae730504fe7 | |
parent | 49a8afca386ee1775519a4aa80f8e121bd227dd4 [diff] |
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>