Skip to contentSkip to conversation

[7221] xen: add console backend driver.

Qemu-devel Anthony Liguori 1 participant 1 message Apr 22, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

Revision: 7221

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7221
Author:   aliguori
Date:     2009-04-22 15:19:19 +0000 (Wed, 22 Apr 2009)

Log Message:
-----------
xen: add console backend driver. (Gerd Hoffmann)

This patch adds a xenconsole backend driver. It it based on current xen-unstable code. It has been changed to make use of the common backend driver code.

Modified Paths:
--------------
trunk/Makefile.target
trunk/hw/xen_backend.h
trunk/hw/xen_machine_pv.c

Added Paths:
-----------
trunk/hw/xen_console.c

Modified: trunk/Makefile.target
===================================================================

Makefile.target +1 -0
@@ -562,6 +562,7 @@
 
 # xen backend driver support
 XEN_OBJS := xen_machine_pv.o xen_backend.o
+XEN_OBJS += xen_console.o
 ifeq ($(CONFIG_XEN), yes)
   OBJS += $(XEN_OBJS)
   LIBS += $(XEN_LIBS)

Modified: trunk/hw/xen_backend.h
===================================================================

hw/xen_backend.h +3 -0
@@ -83,4 +83,7 @@
 void xen_be_printf(struct XenDevice *xendev, int msg_level, const char *fmt, ...)
     __attribute__ ((format(printf, 3, 4)));
 
+/* actual backend drivers */
+extern struct XenDevOps xen_console_ops;      /* xen_console.c     */
+
 #endif /* QEMU_HW_XEN_BACKEND_H */

Added: trunk/hw/xen_console.c
===================================================================

hw/xen_console.c +270 -0

270 lines not on this page · raw message

Modified: trunk/hw/xen_machine_pv.c
===================================================================

hw/xen_machine_pv.c +1 -0
@@ -56,6 +56,7 @@
         fprintf(stderr, "%s: xen backend core setup failed\n", __FUNCTION__);
         exit(1);
     }
+    xen_be_register("console", &xen_console_ops);
 }
 
 QEMUMachine xenpv_machine = {