Source-Changes-HG archive

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

[src/cherry-xenmp]: src/sys/arch/xen/x86 Do not trust the hypervisor to route...



details:   https://anonhg.NetBSD.org/src/rev/033448512367
branches:  cherry-xenmp
changeset: 765631:033448512367
user:      cherry <cherry%NetBSD.org@localhost>
date:      Mon Aug 22 16:48:03 2011 +0000

description:
Do not trust the hypervisor to route events to the right cpu. Enforce this in stipending()

diffstat:

 sys/arch/xen/x86/hypervisor_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r ca81c76dc23e -r 033448512367 sys/arch/xen/x86/hypervisor_machdep.c
--- a/sys/arch/xen/x86/hypervisor_machdep.c     Sun Aug 21 11:24:10 2011 +0000
+++ b/sys/arch/xen/x86/hypervisor_machdep.c     Mon Aug 22 16:48:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hypervisor_machdep.c,v 1.14.2.3 2011/08/17 09:40:39 cherry Exp $       */
+/*     $NetBSD: hypervisor_machdep.c,v 1.14.2.4 2011/08/22 16:48:03 cherry Exp $       */
 
 /*
  *
@@ -54,7 +54,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hypervisor_machdep.c,v 1.14.2.3 2011/08/17 09:40:39 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hypervisor_machdep.c,v 1.14.2.4 2011/08/22 16:48:03 cherry Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -140,8 +140,8 @@
        int *ret = args;
 
        if (evtsource[port]) {
-               hypervisor_set_ipending(ci, evtsource[port]->ev_imask,
-                   l1i, l2i);
+               hypervisor_set_ipending(evtsource[port]->ev_cpu,
+                   evtsource[port]->ev_imask, l1i, l2i);
                evtsource[port]->ev_evcnt.ev_count++;
                if (*ret == 0 && ci->ci_ilevel <
                    evtsource[port]->ev_maxlevel)



Home | Main Index | Thread Index | Old Index