Source-Changes-HG archive

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

[src/bouyer-xen2]: src/sys/arch/xen/xen XXX Gross !!



details:   https://anonhg.NetBSD.org/src/rev/404e12bee8bc
branches:  bouyer-xen2
changeset: 571846:404e12bee8bc
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Fri Dec 17 12:24:39 2004 +0000

description:
XXX Gross !!
Add a printf() in xennet_ctrlif_rx() to make the *xbd* driver work.
Without this, the kernel hang after printing xennet's MAC address,
and kbd is never probed. I suspect it hangs in the
while (!blkif_control_rsp_valid) {} loop, because xbd_response_handler() is
never called.
This needs to be investigated.

diffstat:

 sys/arch/xen/xen/if_xennet.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r d9400de6a4c9 -r 404e12bee8bc sys/arch/xen/xen/if_xennet.c
--- a/sys/arch/xen/xen/if_xennet.c      Fri Dec 17 12:19:53 2004 +0000
+++ b/sys/arch/xen/xen/if_xennet.c      Fri Dec 17 12:24:39 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_xennet.c,v 1.11.4.1 2004/12/13 17:52:21 bouyer Exp $        */
+/*     $NetBSD: if_xennet.c,v 1.11.4.2 2004/12/17 12:24:39 bouyer Exp $        */
 
 /*
  *
@@ -33,7 +33,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_xennet.c,v 1.11.4.1 2004/12/13 17:52:21 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_xennet.c,v 1.11.4.2 2004/12/17 12:24:39 bouyer Exp $");
 
 #include "opt_inet.h"
 #include "rnd.h"
@@ -291,6 +291,7 @@
 xennet_ctrlif_rx(ctrl_msg_t *msg, unsigned long id)
 {
        int respond = 1;
+       printf("xennet_ctrlif_rx(): msg->subtype %d\n", msg->subtype);
 
        DPRINTFN(XEDB_EVENT, ("> ctrlif_rx=%d\n", msg->subtype));
        switch (msg->subtype) {



Home | Main Index | Thread Index | Old Index