From 0f51726adcdb620214405a88b2601d9edd059db4 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Thu, 30 Jun 2011 18:26:29 +0100 Subject: xen_console: support the new extended xenstore protocol Since CS 21994 on xen-unstable.hg and CS 466608f3a32e1f9808acdf832a5843af37e5fcec on qemu-xen-unstable.git, few changes have been introduced to the PV console xenstore protocol, as described by the document docs/misc/console.txt under xen-unstable.hg. From the Qemu point of view, very few modifications are needed to correctly support the protocol: read from xenstore the "output" node that tell us what the output of the PV console is going to be. In case the output is a tty, write to xenstore the device name. Changes in v2: - fix error paths: free malloc'ed strings and close the xenstore connection before returning; - remove useless snprintf in xenstore_store_pv_console_info if i == 0. Changes in v3: - replace xs_daemon_open/xs_daemon_close with xs_open/xs_close. Changes in v4: - add a compatibility implementation of xs_open/xs_close. Changes in v5: - fix code style. [agraf] fix build error due to missing stub Signed-off-by: Stefano Stabellini Signed-off-by: Alexander Graf --- hw/xen.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/xen.h') diff --git a/hw/xen.h b/hw/xen.h index 95029bb164..e432705f45 100644 --- a/hw/xen.h +++ b/hw/xen.h @@ -41,6 +41,7 @@ qemu_irq *xen_interrupt_controller_init(void); int xen_init(void); int xen_hvm_init(void); void xen_vcpu_init(void); +void xenstore_store_pv_console_info(int i, struct CharDriverState *chr); #if defined(NEED_CPU_H) && !defined(CONFIG_USER_ONLY) void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size); -- cgit v1.2.3