pv-qemu 8/10: Add pv console to QEMU paravirt machine
authorKeir Fraser <keir@xensource.com>
Thu, 25 Oct 2007 13:42:40 +0000 (14:42 +0100)
committerKeir Fraser <keir@xensource.com>
Thu, 25 Oct 2007 13:42:40 +0000 (14:42 +0100)
commit36a48e9d8706a6b6e60f3965edc75a99bf4fcc7d
tree3327781075bb12080141730973586572aa963ccb
parent0830ea747f8e64d73597a0f426c4a4c8ac6e3174
pv-qemu 8/10: Add pv console to QEMU paravirt machine

This patch adds a paravirt console driver to qemu-dm. This is used
when the QEMU machine type is 'xenpv', connecting to the ring buffer
provided by the guest kernel. The '-serial' command line flag controls
how the guest console is exposed.

For parity with xenconsoled the '-serial pty' arg can be used. For
guests which are running a qemu-dm device model, the xenconsoled
daemon is no longer needed for guest consoles. The code for the
xen_console.c is based on the original code in
tools/console/daemon/io.c, but simplified; since its only dealing with
a single guest there's no state tracking to worry about.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/ioemu/Makefile.target
tools/ioemu/hw/xen_console.c [new file with mode: 0644]
tools/ioemu/hw/xen_console.h [new file with mode: 0644]
tools/ioemu/hw/xen_machine_pv.c
tools/ioemu/xenstore.c
tools/python/xen/xend/XendDomainInfo.py