diff options
author | Paul Durrant <paul.durrant@citrix.com> | 2010-07-29 18:58:19 +0100 |
---|---|---|
committer | Paul Durrant <paul.durrant@citrix.com> | 2010-07-29 18:58:19 +0100 |
commit | 116fe7eac5cda05e693e167700b0a8156bb3f57a (patch) | |
tree | 9361df7c8f9bf2692d53d43ed708111a3e2f41a2 /tools/misc/Makefile | |
parent | 9becdd8ee96e8d2572b72a9b9c67a6e5c708971d (diff) | |
download | xen-116fe7eac5cda05e693e167700b0a8156bb3f57a.tar.gz xen-116fe7eac5cda05e693e167700b0a8156bb3f57a.tar.bz2 xen-116fe7eac5cda05e693e167700b0a8156bb3f57a.zip |
tools/misc: xen-hvmcrash: New tool to attempt to crash HVM guests
This tool reads the CPU save records, overwrites RIP with a bogus
value, and then restores them. This is, of course, not guaranteed
to crash the guest (since the CPUs may not be executing in kernel
at the time) but it's good for breaking into some tight loops that
would be hard to debug otherwise.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/misc/Makefile')
-rw-r--r-- | tools/misc/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/misc/Makefile b/tools/misc/Makefile index 843de9d3ec..22fd42300a 100644 --- a/tools/misc/Makefile +++ b/tools/misc/Makefile @@ -11,7 +11,7 @@ CFLAGS += $(INCLUDES) HDRS = $(wildcard *.h) TARGETS-y := xenperf xenpm xen-tmem-list-parse gtraceview gtracestat xenlockprof xenwatchdogd -TARGETS-$(CONFIG_X86) += xen-detect xen-hvmctx +TARGETS-$(CONFIG_X86) += xen-detect xen-hvmctx xen-hvmcrash TARGETS-$(CONFIG_MIGRATE) += xen-hptool TARGETS := $(TARGETS-y) @@ -24,7 +24,7 @@ INSTALL_BIN-$(CONFIG_X86) += xen-detect INSTALL_BIN := $(INSTALL_BIN-y) INSTALL_SBIN-y := xm xen-bugtool xen-python-path xend xenperf xsview xenpm xen-tmem-list-parse gtraceview gtracestat xenlockprof xenwatchdogd -INSTALL_SBIN-$(CONFIG_X86) += xen-hvmctx +INSTALL_SBIN-$(CONFIG_X86) += xen-hvmctx xen-hvmcrash INSTALL_SBIN-$(CONFIG_MIGRATE) += xen-hptool INSTALL_SBIN := $(INSTALL_SBIN-y) @@ -51,7 +51,7 @@ clean: %.o: %.c $(HDRS) Makefile $(CC) -c $(CFLAGS) -o $@ $< -xen-hvmctx xenperf xenpm gtracestat xenlockprof xen-hptool xenwatchdogd: %: %.o Makefile +xen-hvmctx xen-hvmcrash xenperf xenpm gtracestat xenlockprof xen-hptool xenwatchdogd: %: %.o Makefile $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenguest) $(LDFLAGS_libxenstore) gtraceview: %: %.o Makefile |