Skip to contentSkip to conversation

utility for accessing xenstore stubdom console which doesn't use xenstore

PATCH In review Alex Zeffertt 1 participant 2 messages Mar 23, 2009 – Jun 10, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 21/24 utility for accessing xenstore stubdom console which doesn't use xenstore

This is a very dumb xenconsole backend that does not use xenstore.

---

.hgignore +1 -0
diff -r 07fb7525c9ce .hgignore
@@ -179,6 +179,7 @@
 ^tools/misc/xc_shadow$
 ^tools/misc/xen_cpuperf$
 ^tools/misc/xen-detect$
+^tools/misc/xenconsole_dump$
 ^tools/misc/xenperf$
 ^tools/misc/xenpm$
 ^tools/pygrub/build/.*$
tools/misc/Makefile +5 -2
diff -r 07fb7525c9ce tools/misc/Makefile
@@ -10,7 +10,7 @@
 
 HDRS     = $(wildcard *.h)
 
-TARGETS-y := xenperf xenpm
+TARGETS-y := xenperf xenpm xenconsole_dump
 TARGETS-$(CONFIG_X86) += xen-detect
 TARGETS := $(TARGETS-y)
 
@@ -18,7 +18,7 @@
 SUBDIRS-$(CONFIG_MINITERM) += miniterm
 SUBDIRS := $(SUBDIRS-y)
 
-INSTALL_BIN-y := xencons
+INSTALL_BIN-y := xencons xenconsole_dump
 INSTALL_BIN-$(CONFIG_X86) += xen-detect
 INSTALL_BIN := $(INSTALL_BIN-y)
 
@@ -56,4 +56,7 @@
 xenperf xenpm: %: %.o Makefile
 	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_libxenctrl)
 
+xenconsole_dump: %: %.o Makefile
+	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_libxenctrl)
+
 -include $(DEPS)
tools/misc/xenconsole_dump.c new file +143 -0

143 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Hi,

I've attached an updated version of this patch which fixes a bug.

xenconsole_dump was sending a notification on the console evtchn after reading from the console shared page, but this causes crashes in minios VMs such as the xenstore stubdomain.

Removing the unnecessary xc_evtchn_notify() call in xenconsole_dump makes it possible to run "/etc/init.d/xenstored console" without crashing the xenstore stubdom.

Quoted 1 line · Alex Zeffertt

This is a very dumb xenconsole backend that does not use xenstore.

---

.hgignore +1 -0
diff -r 3d1e54a046d3 .hgignore
@@ -196,6 +196,7 @@
 ^tools/misc/xen-tmem-list-parse$
 ^tools/misc/xenperf$
 ^tools/misc/xenpm$
+^tools/misc/xenconsole_dump$
 ^tools/pygrub/build/.*$
 ^tools/python/build/.*$
 ^tools/python/xen/util/path\.py$
tools/misc/Makefile +5 -2
diff -r 3d1e54a046d3 tools/misc/Makefile
@@ -10,7 +10,7 @@
 
 HDRS     = $(wildcard *.h)
 
-TARGETS-y := xenperf xenpm xen-tmem-list-parse
+TARGETS-y := xenperf xenpm xen-tmem-list-parse xenconsole_dump
 TARGETS-$(CONFIG_X86) += xen-detect
 TARGETS := $(TARGETS-y)
 
@@ -18,7 +18,7 @@
 SUBDIRS-$(CONFIG_MINITERM) += miniterm
 SUBDIRS := $(SUBDIRS-y)
 
-INSTALL_BIN-y := xencons
+INSTALL_BIN-y := xencons xenconsole_dump
 INSTALL_BIN-$(CONFIG_X86) += xen-detect
 INSTALL_BIN := $(INSTALL_BIN-y)
 
@@ -56,4 +56,7 @@
 xenperf xenpm: %: %.o Makefile
 	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_libxenctrl)
 
+xenconsole_dump: %: %.o Makefile
+	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_libxenctrl)
+
 -include $(DEPS)
tools/misc/xenconsole_dump.c new file +142 -0

142 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel