From: Hidetoshi Shimokawa <simokawa@FreeBSD.org>
To: Kip Macy <kmacy@fsmware.com>
Cc: xen-devel@lists.sourceforge.net
Subject: Re: Re: Where to get FreeBSD port for Xen
Date: Mon, 24 Jan 2005 18:01:34 +0900 [thread overview]
Message-ID: <86u0p7dwup.wl@maru5.nunu.org> (raw)
In-Reply-To: <20050123182446.T34777@demos.bsdclusters.com>
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 <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@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
next prev parent reply other threads:[~2005-01-24 9:01 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200501191606.22899.mparem@cisco.com>
2005-01-19 23:18 ` Where to get FreeBSD port for Xen Kip Macy
2005-01-20 17:00 ` Mikhail V.Paremski
2005-01-20 21:52 ` Kip Macy
2005-01-21 0:18 ` David Rhodus
2005-01-21 22:23 ` Kip Macy
2005-01-24 0:39 ` Derrik Pates
2005-01-24 0:44 ` Kip Macy
2005-01-24 1:31 ` Kip Macy
2005-01-24 5:04 ` Derrik Pates
2005-01-24 6:15 ` Kip Macy
2005-01-24 6:18 ` Derrik Pates
2005-01-24 6:47 ` Kip Macy
2005-01-24 22:57 ` Derrik Pates
2005-01-24 23:03 ` Kip Macy
2005-01-24 23:50 ` Kip Macy
2005-01-25 0:27 ` OpenBSD " Dave Feustel
2005-01-25 0:38 ` Kip Macy
2005-01-25 1:02 ` Dave Feustel
2005-01-25 1:05 ` Kip Macy
2005-01-25 22:04 ` Scott Parish
2005-01-25 0:53 ` Re: Where to get FreeBSD " Derrik Pates
2005-01-24 2:25 ` Kip Macy
2005-01-24 9:01 ` Hidetoshi Shimokawa [this message]
2005-01-24 21:29 ` Kip Macy
2005-01-25 3:05 ` Hidetoshi Shimokawa
2005-01-25 4:09 ` Kip Macy
2005-01-25 4:40 ` Kip Macy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86u0p7dwup.wl@maru5.nunu.org \
--to=simokawa@freebsd.org \
--cc=kmacy@fsmware.com \
--cc=xen-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.