From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kip Macy Subject: Re: Re: Where to get FreeBSD port for Xen Date: Mon, 24 Jan 2005 13:29:38 -0800 (PST) Message-ID: <20050124132243.B64295@demos.bsdclusters.com> References: <200501191606.22899.mparem@cisco.com> <20050119151721.Q35260@demos.bsdclusters.com> <41F443C6.3010002@devrandom.net> <20050123182446.T34777@demos.bsdclusters.com> <86u0p7dwup.wl@maru5.nunu.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <86u0p7dwup.wl@maru5.nunu.org> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Hidetoshi Shimokawa Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org 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@FreeBSD.org > > 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 > #include > #include > +#include > > 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@devrandom.net > > > > > > > > > ------------------------------------------------------- > > 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@lists.sourceforge.net > > 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