console: buffer and show origin of guest PV writes
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 10 Sep 2013 14:39:46 +0000 (16:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Sep 2013 14:39:46 +0000 (16:39 +0200)
commit48d50de8e086e6669979889fb58dbf1092d10347
tree738132c73e6e78cab75df57e02ada5d8ccd602bb
parent30832c06a8d1f9caff0987654ef9e24d59469d9a
console: buffer and show origin of guest PV writes

Guests other than domain 0 using the console output have previously been
controlled by the VERBOSE #define, but with no designation of which
guest's output was on the console. This patch converts the HVM output
buffering to be used by all domains except the hardware domain (dom0):
stripping non-printable characters, line buffering the output, and
prefixing it with the domain ID. This is especially useful for debugging
stub domains during early boot.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/hvm.c
xen/common/domain.c
xen/drivers/char/console.c
xen/include/asm-x86/hvm/domain.h
xen/include/xen/lib.h
xen/include/xen/sched.h