Monday, March 30, 2009

build lxr for Xen

1. follow this link:
http://tread.wordpress.com/2007/08/25/howto-setup-lxr-on-linux-ubuntu-feisty/
2. Modify /usr/share/lxr/http/lxr.conf
#sourceroot: /usr/share/lxr/source/$v/linux/
#srcrootname: Linux
sourceroot: /usr/share/lxr/source/$v/xen/
srcrootname: Xen

debug linux

kernel oops:
http://www.91linux.com/html/article/kernel/20070623/2921.html
Mastering Linux debugging techniques
http://idcnews.net/html/edu/20070101/294479.html
kgdb
http://zhanglinbao.bokee.com/2942457.html
Inside the Linux kernel debugger
http://www.stuttgarter.org/forum/redirect.php?tid=22540&goto=lastpost
EDB
http://www.codef00.com/projects.php#Debugger
Use QEMU to debug kernel
http://issaris.blogspot.com/2007/12/download-linux-kernel-sourcecode-from.html

Tuesday, March 24, 2009

GCC-Inline-Assembly-HOWTO

http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html#s2

GDB and assembly
https://forum.eviloctal.com/thread-21546-1-5.html

RESOURCES:
http://asm.sourceforge.net/resources.html

SIMPLE TUTORIAL:
http://www.xs4all.nl/~smit/asm01001.htm

Sunday, March 22, 2009

xentrace, xenmon

XenMon:

http://www.hpl.hp.com/techreports/2005/HPL-2005-187.html

http://lists.xensource.com/archives/html/xen-tools/2006-06/msg00006.html

Xentrace:

http://lists.xensource.com/archives/cgi-bin/extract-mesg.cgi?a=xen-users&m=2007-07&i=000001c7d05a%24817c75c0%2484756140%24%40buaa.edu.cn

http://lists.xensource.com/archives/html/xen-tools/2007-03/msg00004.html

http://lists.xensource.com/archives/html/xen-tools/2006-06/msg00007.html

http://lists.xensource.com/archives/html/xen-users/2007-07/msg00783.html

http://books.google.com/books?id=dKaBdb-xYcoC&pg=PA194&lpg=PA194&dq=how+to+use+xentrace&source=bl&ots=c7AbMSkRG8&sig=GirFTfx9oKDNoFaMgroo-3LHvmY&hl=en&ei=UnXGSd7_GI-stgf375hn&sa=X&oi=book_result&resnum=9&ct=result#PPA195,M1


Summary:

1) xentrace -e all trace.out (this command will record all the events)

2) cat trace.out| xentrace_format formats | more

xentrace_format is a program to translate the binary format of trace.out to text format.

The formats file is in /tools/xentrace/formats.   In the same directory, there is a file called xentrace_format. It is not the "format" file, it is a python program. If you use it as format file, you will get an error "SyntaxError: Unexpected EOF while parsing".


Friday, March 6, 2009

Compiling chapter 2 example from "The Definitive Guide to the Xen" book

When compiling on a PAE enabled Xen hypvervisor, you will get follwing error:

"guest type xen-3.0-x86_32 not supported by xen kernel"

Solution: modify the bootstrap.x86_32.S file, change "PAE=no" to "PAE=yes".

Wednesday, March 4, 2009

Fedora 9 and 10 does not support running as Dom 0

Since Fedora 9, they will only support to run as Dom U.

http://fedoraproject.org/wiki/Features/XenPvops
http://wiki.xensource.com/xenwiki/XenParavirtOps
http://www.redhat.com/archives/fedora-xen/2007-November/msg00106.html
http://docs.fedoraproject.org/release-notes/f10/en_US/What_Do_System_Adminstrators_Care_About.html#sn-Virtualization (8.3.4.4)

Clone Xen VM

The best way for now is to use virt-clone. It supports automate cloning and support other virtualization technolgoies such as QEMU.
Here is the man page:
http://linux.die.net/man/1/virt-clone
Another post:
http://www.linuxquestions.org/questions/susenovell-60/cloneduplicate-a-xen-vm-domu-618921/