Files
xen/unmodified_drivers/linux-2.6
Keir Fraser 5ffec49444 pv-on-hvm: Signal crash to Xen tools when HVM guest panics.
Attached patch adds a function to automatically dump core file when
guest linux on HVM domain panics, in the same way as PV domain.

I tested this patch with kernel 2.6.9 and 2.6.18 on both of x86 and
ia64 (to buid for ia64, some patches in the ia64 tree are needed) by
the following steps, and confirmed it works well:

1. Build xen-platform-pci.ko.
2. In /etc/xen/xend-config.sxp, set (enable-dump yes).
3. On guest linux, execute insmod:
   # insmod xen-platform-pci.ko
4. When guest linux panics, a core file is dumped.

Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>
2008-02-13 10:42:09 +00:00
..
2007-07-12 16:03:41 +01:00

To build:

1. ./mkbuildtree
   NB. You can override paths to Xen sources and a (stub) XenLinux
       build tree via the XEN and XL environment variable.

2. make -C /path/to/kernel/build M=$PWD modules
   NB. This is your native kernel build tree (or a distro provided
       stub), not the XenLinux sources referred to in step 1.

You get four modules, xen-platform-pci.ko, xenbus.ko, xen-vbd.ko, and
xen-vnif.ko.  Load xen-platform-pci first, then xenbus, and then
whichever of xen-vbd and xen-vnif you happen to need.