Using the C library
What was the reasoning behoind going to a userland daemon in Domain-0 to handle tracking of resources? I'm not terribly familiar with the logic behind this method other than instabilities int he daemon keeps you from crashing the kernel. But if you crash the userland daemon, how do you recover the lost information?
Another question I had was, why python (I don't intend to start a flamewar of lang-x vs lang-y). Most system level tools that I have seen in the last 14 years of using unix were written in C.
Just curious is all for now. :)
Brian
On Fri, 18 Jun 2004 23:40:59 +0100
Ian Pratt <[email protected]> said...
Quoted 3 lines
I want to start a domain from my C program. But it's not very clear how to do so.
I wouldn't advise going down this route: In the xeno-unstable (forthcoming 2.0) your program will need to talk to 'xend' rather than invoking operations on Xen directly. This is necessary since in the new IO model Xen no longer knows about the state of IO devices etc; information about the state of the whole machine is now held in xend.
Xend provides a http interface to enable other programs to issue requests to it. You can see example invocations by looking at the new 'xm' tool.
We anticipate that only xend will use the C libary interface to Xen.
Ian
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
How to debug the Xen kernel?
Hi,
Can someone tell me how to debug the kernel in Xen?
For example, I have a user program running in dom0, how can I step into the Xen code to see what happens inside?
I tried to use kdb, but it seems that after I did the patch, the "make menuconfig" in xenolinux-2.4.26 directory doesn't include the option of kdb.
Thanks.
Xiaofang
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
Re: How to debug the Xen kernel?
Quoted 2 lines
Can someone tell me how to debug the kernel in Xen?
If you've a second machine, you could use the Xen GDB serial stub. See docs/pdb.txt
Quoted 3 lines
I tried to use kdb, but it seems that after I did the patch, the "make menuconfig" in xenolinux-2.4.26 directory doesn't include the option of kdb.
I'm guessing that you didn't modify the patch so that it patched arch/xen rather than arch/i386? (or use fakei386xen)
Since a kernel debugger is very intimately architecture dependent it's unlikely to apply without a fair bit of manual merging.
Ian
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND