WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: Where to get FreeBSD port for Xen

To: Kip Macy <kmacy@xxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Where to get FreeBSD port for Xen
From: Hidetoshi Shimokawa <simokawa@xxxxxxxxxxx>
Date: Tue, 25 Jan 2005 12:05:38 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 25 Jan 2005 11:07:29 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <20050124132243.B64295@xxxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <200501191606.22899.mparem@xxxxxxxxx> <20050119151721.Q35260@xxxxxxxxxxxxxxxxxxxxx> <41F443C6.3010002@xxxxxxxxxxxxx> <20050123182446.T34777@xxxxxxxxxxxxxxxxxxxxx> <86u0p7dwup.wl@xxxxxxxxxxxxxx> <20050124132243.B64295@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3.50 (i386-unknown-freebsd5.3) MULE/5.0 (SAKAKI)
I have experianced strange lockups sometimes.
In that case, 'xm list' shows no state for freebsd.
(usually it is blocked)

Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0       59    0  r----    990.1        
freebsd.sample     2       64    0  -----    547.6    9602

I'd like to analyze this problem using debugger.
I found gdbserver binary in your web site but it seems old and
to require old libraries. Can I get the gdbserver source?

Thanks,

/\ Hidetoshi Shimokawa
\/  simokawa@xxxxxxxxxxx


At Mon, 24 Jan 2005 13:29:38 -0800 (PST),
Kip Macy wrote:
> 
> Thanks for patch and the heads up on the successful boot.
> 
> I'll apply the patch and update the posted tarball and kernel tonight.
> 
> 
> 
>                                       -Kip
> 
> On Mon, 24 Jan 2005, Hidetoshi Shimokawa wrote:
> 
> > Thank you very much for your work, Kip.
> >
> > I successfully booted xenofreebsd from your source.
> > The following patch(obtained from NetBSD) seems to
> > fix the scheduling problem.
> >
> > /\ Hidetoshi Shimokawa
> > \/  simokawa@xxxxxxxxxxx
> >
> > diff -u -r /home/simokawa/xen/i386-xeno/i386-xeno/clock.c 
> > i386-xeno/i386-xeno/clock.c
> > --- /home/simokawa/xen/i386-xeno/i386-xeno/clock.c  Mon Jan 24 10:36:19 2005
> > +++ i386-xeno/i386-xeno/clock.c     Mon Jan 24 16:58:31 2005
> > @@ -502,3 +502,10 @@
> >     /* our adjusted time offset in microseconds */
> >     return edx;
> >  }
> > +
> > +void
> > +idle_block(void)
> > +{
> > +   if (HYPERVISOR_set_timer_op(processed_system_time + NS_PER_TICK) == 0)
> > +           HYPERVISOR_block();
> > +}
> > diff -u -r /home/simokawa/xen/i386-xeno/i386-xeno/machdep.c 
> > i386-xeno/i386-xeno/machdep.c
> > --- /home/simokawa/xen/i386-xeno/i386-xeno/machdep.c        Mon Jan 24 
> > 10:36:19 2005
> > +++ i386-xeno/i386-xeno/machdep.c   Mon Jan 24 17:50:25 2005
> > @@ -140,6 +140,7 @@
> >  #include <machine/hypervisor.h>
> >  #include <machine/xenfunc.h>
> >  #include <machine/xenvar.h>
> > +#include <machine/xen_intr.h>
> >
> >  void Xhypervisor_callback(void);
> >  void failsafe_callback(void);
> > @@ -903,8 +904,13 @@
> >      */
> >     __asm __volatile("sti; hlt");
> >  #endif
> > +#if 0
> >     enable_intr();
> >     HYPERVISOR_yield();
> > +#else
> > +   idle_block();
> > +   enable_intr();
> > +#endif
> >  }
> >
> >  /*
> > diff -u -r /home/simokawa/xen/i386-xeno/include/xen_intr.h 
> > i386-xeno/include/xen_intr.h
> > --- /home/simokawa/xen/i386-xeno/include/xen_intr.h Mon Jan 24 10:36:19 2005
> > +++ i386-xeno/include/xen_intr.h    Mon Jan 24 17:48:55 2005
> > @@ -44,6 +44,7 @@
> >  extern void irq_suspend(void);
> >  extern void irq_resume(void);
> >
> > +extern void idle_block(void);
> >
> >
> >  #endif /* _XEN_INTR_H_ */
> >
> >
> > At Sun, 23 Jan 2005 18:25:25 -0800 (PST),
> > Kip Macy wrote:
> > >
> > > For those interested I've uploaded a source tarball and copied in
> > > updated directions.
> > >
> > >
> > >                                   -Kip
> > >
> > >
> > >
> > > On Sun, 23 Jan 2005, Derrik Pates wrote:
> > >
> > > > Kip Macy wrote:
> > > > > It looks like apache had gone out to lunch. I just restarted it and it
> > > > > is accessible again. If you wait a day I'll have 5.3 up. 5.2.1 is what
> > > > > is there right now.
> > > >
> > > > Kip:
> > > >
> > > > Any luck with that FreeBSD 5.3 kernel? Our network engineer wants to set
> > > > up a Xen box for internal use with Debian and FreeBSD on it, and I'm
> > > > hoping to get FreeBSD 5.3 on there. Also, were you able to figure out
> > > > the blocking stuff in the scheduling code?
> > > >
> > > > --
> > > > Derrik Pates
> > > > demon@xxxxxxxxxxxxx
> > > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> > > Tool for open source databases. Create drag-&-drop reports. Save time
> > > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> > > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> > > https://lists.sourceforge.net/lists/listinfo/xen-devel
> >


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel