NetBSD-Bugs archive

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

Re: port-xen/45158: Xen Kernel panics when restarting DomU (Problem with vnd detach?)



The following reply was made to PR port-xen/45158; it has been noted by GNATS.

From: roger.pau%entel.upc.edu@localhost (Roger Pau Monne)
To: undisclosed-recipients:;
Cc: 
Subject: Re: port-xen/45158: Xen Kernel panics when restarting DomU (Problem 
with vnd detach?)
Date: Tue, 26 Jul 2011 14:27:08 +0200 (CEST)

 I hope this time the patch is attached correctly
 
 Index: sys/arch/xen/xen/xbdback_xenbus.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/xen/xen/xbdback_xenbus.c,v
 retrieving revision 1.41
 diff -u -r1.41 xbdback_xenbus.c
 --- sys/arch/xen/xen/xbdback_xenbus.c   24 Jul 2011 23:56:34 -0000      1.41
 +++ sys/arch/xen/xen/xbdback_xenbus.c   25 Jul 2011 15:55:28 -0000
 @@ -675,6 +675,7 @@
  {
         struct xenbus_device *xbusd = watch->xbw_dev;
         struct xbdback_instance *xbdi = xbusd->xbusd_u.b.b_cookie;
 +       struct xbdback_instance *xbdi_iter;
         int err;
         long dev;
         char *mode;
 @@ -696,6 +697,12 @@
                     xbusd->xbusd_path, xbdi->xbdi_dev, dev);
                 return;
         }
 +       SLIST_FOREACH(xbdi_iter, &xbdback_instances, next) {
 +               if (xbdi_iter->xbdi_dev == dev) {
 +                       printf("xbdback: device 0x%lx already opened\n", dev);
 +                       return;
 +               }
 +       }
         xbdi->xbdi_dev = dev;
         err = xenbus_read(NULL, xbusd->xbusd_path, "mode", NULL, &mode);
         if (err) {
 


Home | Main Index | Thread Index | Old Index