Skip to contentSkip to conversation

Patch "KVM: s390: clear floating interrupt bitmap and parameters" has been added to the 4.1-stable tree

PATCH [email protected] 1 participant 1 message Jul 8, 2015

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

KVM: s390: clear floating interrupt bitmap and parameters

to the 4.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
kvm-s390-clear-floating-interrupt-bitmap-and-parameters.patch
and it can be found in the queue-4.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From f2ae45edbca7ba5324eef01719ede0151dc5cead Mon Sep 17 00:00:00 2001

From: Jens Freimann <[email protected]>
Date: Mon, 22 Jun 2015 13:20:12 +0200
Subject: KVM: s390: clear floating interrupt bitmap and parameters

From: Jens Freimann <[email protected]>

commit f2ae45edbca7ba5324eef01719ede0151dc5cead upstream.

commit 6d3da24141 ("KVM: s390: deliver floating interrupts in order of priority") introduced a regression for the reset handling.

We don't clear the bitmap of pending floating interrupts and interrupt parameters. This could result in stale interrupts even after a reset. Let's fix this by clearing the pending bitmap and the parameters for service and machine check interrupts.

---
 arch/s390/kvm/interrupt.c |    3 +++
 1 file changed, 3 insertions(+)
arch/s390/kvm/interrupt.c +3 -0
@@ -1606,6 +1606,9 @@ void kvm_s390_clear_float_irqs(struct kv
 	int i;
 
 	spin_lock(&fi->lock);
+	fi->pending_irqs = 0;
+	memset(&fi->srv_signal, 0, sizeof(fi->srv_signal));
+	memset(&fi->mchk, 0, sizeof(fi->mchk));
 	for (i = 0; i < FIRQ_LIST_COUNT; i++)
 		clear_irq_list(&fi->lists[i]);
 	for (i = 0; i < FIRQ_MAX_COUNT; i++)

Patches currently in stable-queue which might be from [email protected] are

queue-4.1/kvm-s390-clear-floating-interrupt-bitmap-and-parameters.patch queue-4.1/kvm-s390-fix-external-call-injection-without-sigp-interpretation.patch