Module Name:    src
Committed By:   bouyer
Date:           Sun Nov 15 14:01:06 UTC 2020

Modified Files:
        src/sys/arch/xen/xen: evtchn.c

Log Message:
Don't restrict debug event to XENPV, it's also usefull for PVH/PVHVM


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/arch/xen/xen/evtchn.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/xen/evtchn.c
diff -u src/sys/arch/xen/xen/evtchn.c:1.95 src/sys/arch/xen/xen/evtchn.c:1.96
--- src/sys/arch/xen/xen/evtchn.c:1.95	Wed May 13 13:19:38 2020
+++ src/sys/arch/xen/xen/evtchn.c	Sun Nov 15 14:01:06 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: evtchn.c,v 1.95 2020/05/13 13:19:38 jdolecek Exp $	*/
+/*	$NetBSD: evtchn.c,v 1.96 2020/11/15 14:01:06 bouyer Exp $	*/
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -54,7 +54,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.95 2020/05/13 13:19:38 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.96 2020/11/15 14:01:06 bouyer Exp $");
 
 #include "opt_xen.h"
 #include "isa.h"
@@ -261,7 +261,6 @@ events_init(void)
 bool
 events_resume(void)
 {
-#ifdef XENPV
 	debug_port = bind_virq_to_evtch(VIRQ_DEBUG);
 
 	KASSERT(debug_port != -1);
@@ -276,7 +275,6 @@ events_resume(void)
 	evtsource[debug_port] = (void *)-1;
 	xen_atomic_set_bit(&curcpu()->ci_evtmask[0], debug_port);
 	hypervisor_unmask_event(debug_port);
-#endif /* XENPV */
 	x86_enable_intr();		/* at long last... */
 
 	return true;

Reply via email to