Module Name:    src
Committed By:   bouyer
Date:           Tue May 31 12:52:59 UTC 2022

Modified Files:
        src/sys/arch/xen/x86: hypervisor_machdep.c

Log Message:
stipending(): if we're going to process some interrupts don't return 0.
Hopefully fixes random hang seen in i386 Xen PV.

The bug has been there ~forever but was masked by the fact that spllower()
did call event handlers much more often.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/xen/x86/hypervisor_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/xen/x86/hypervisor_machdep.c
diff -u src/sys/arch/xen/x86/hypervisor_machdep.c:1.40 src/sys/arch/xen/x86/hypervisor_machdep.c:1.41
--- src/sys/arch/xen/x86/hypervisor_machdep.c:1.40	Thu May 19 09:54:27 2022
+++ src/sys/arch/xen/x86/hypervisor_machdep.c	Tue May 31 12:52:59 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: hypervisor_machdep.c,v 1.40 2022/05/19 09:54:27 bouyer Exp $	*/
+/*	$NetBSD: hypervisor_machdep.c,v 1.41 2022/05/31 12:52:59 bouyer Exp $	*/
 
 /*
  *
@@ -54,7 +54,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hypervisor_machdep.c,v 1.40 2022/05/19 09:54:27 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hypervisor_machdep.c,v 1.41 2022/05/31 12:52:59 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -208,6 +208,7 @@ stipending(void)
 	 */
 
 	while (vci->evtchn_upcall_pending) {
+		ret = 1;
 		x86_disable_intr();
 
 		vci->evtchn_upcall_pending = 0;

Reply via email to