Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen Don't restrict debug event to XENPV, it's a...



details:   https://anonhg.NetBSD.org/src/rev/384c05f77092
branches:  trunk
changeset: 946080:384c05f77092
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Nov 15 14:01:06 2020 +0000

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

diffstat:

 sys/arch/xen/xen/evtchn.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 61bf345db59e -r 384c05f77092 sys/arch/xen/xen/evtchn.c
--- a/sys/arch/xen/xen/evtchn.c Sun Nov 15 13:59:42 2020 +0000
+++ b/sys/arch/xen/xen/evtchn.c Sun Nov 15 14:01:06 2020 +0000
@@ -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 @@
 bool
 events_resume(void)
 {
-#ifdef XENPV
        debug_port = bind_virq_to_evtch(VIRQ_DEBUG);
 
        KASSERT(debug_port != -1);
@@ -276,7 +275,6 @@
        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;



Home | Main Index | Thread Index | Old Index