From: Christian Borntraeger Date: Wed, 3 Feb 2016 10:12:34 +0000 (+0100) Subject: KVM: s390: bail out early on fatal signal in dirty logging X-Git-Tag: MMI-PSA29.97-13-9~8348^2^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1763f8d09d522b3ac998229dcf038476e88b78fc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git KVM: s390: bail out early on fatal signal in dirty logging A KVM_GET_DIRTY_LOG ioctl might take a long time. This can result in fatal signals seemingly being ignored. Lets bail out during the dirty bit sync, if a fatal signal is pending. Signed-off-by: Christian Borntraeger Reviewed-by: David Hildenbrand Signed-off-by: Christian Borntraeger --- diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index bb99ca28eb66..28bd5ea1b08f 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -281,6 +281,8 @@ static void kvm_s390_sync_dirty_log(struct kvm *kvm, if (gmap_test_and_clear_dirty(address, gmap)) mark_page_dirty(kvm, cur_gfn); + if (fatal_signal_pending(current)) + return; cond_resched(); } }