pv-qemu 10/10: Make xenconsoled ignore doms with qemu-dm
authorKeir Fraser <keir@xensource.com>
Thu, 25 Oct 2007 13:45:47 +0000 (14:45 +0100)
committerKeir Fraser <keir@xensource.com>
Thu, 25 Oct 2007 13:45:47 +0000 (14:45 +0100)
commitf8e2c1f126f7216792c6bf487b02728a4f5a917a
tree8fb9fd0688682e37ea85338c410f0ea441a078f5
parentf8ffd3b21f42c524ab836080a64b9147c4faf6df
pv-qemu 10/10: Make xenconsoled ignore doms with qemu-dm

This patch writes a field /local/vm/DOMID/console/type taking the
value 'ioemu' or 'xenconsoled'. If xenconsoled sees a type that is
not its own, then it skips handling of that guest. The qemu-dm
process doesn't need to read this field since it will only attach
to the console if given the -serial pty arg which XenD already
ensures matches this xenstore field.

The overall behaviour is that if a paravirt guest has a qemu-dm
process running then that handles the console, otherwise the
xenconsoled handles it. The former is more functional, with the
exception of not currently supporting persistent logging to a
file at the same time as exposing a PTY.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/console/daemon/io.c
tools/python/xen/xend/XendDomainInfo.py