xen: add framebuffer backend driver (Gerd Hoffmann)
This patch adds a frsamebuffer (and kbd+mouse) backend driver. It it based on current xen-unstable code. It has been changed to make use of the common backend driver code. It also has been changed to compile with xen headers older than release 3.3 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7222 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e57dd20bb7
commit
e7151f83e2
@ -562,7 +562,7 @@ endif
|
||||
|
||||
# xen backend driver support
|
||||
XEN_OBJS := xen_machine_pv.o xen_backend.o
|
||||
XEN_OBJS += xen_console.o
|
||||
XEN_OBJS += xen_console.o xenfb.o
|
||||
ifeq ($(CONFIG_XEN), yes)
|
||||
OBJS += $(XEN_OBJS)
|
||||
LIBS += $(XEN_LIBS)
|
||||
|
@ -85,5 +85,9 @@ void xen_be_printf(struct XenDevice *xendev, int msg_level, const char *fmt, ...
|
||||
|
||||
/* actual backend drivers */
|
||||
extern struct XenDevOps xen_console_ops; /* xen_console.c */
|
||||
extern struct XenDevOps xen_kbdmouse_ops; /* xen_framebuffer.c */
|
||||
extern struct XenDevOps xen_framebuffer_ops; /* xen_framebuffer.c */
|
||||
|
||||
void xen_init_display(int domid);
|
||||
|
||||
#endif /* QEMU_HW_XEN_BACKEND_H */
|
||||
|
@ -57,6 +57,11 @@ static void xen_init_pv(ram_addr_t ram_size, int vga_ram_size,
|
||||
exit(1);
|
||||
}
|
||||
xen_be_register("console", &xen_console_ops);
|
||||
xen_be_register("vkbd", &xen_kbdmouse_ops);
|
||||
xen_be_register("vfb", &xen_framebuffer_ops);
|
||||
|
||||
/* setup framebuffer */
|
||||
xen_init_display(xen_domid);
|
||||
}
|
||||
|
||||
QEMUMachine xenpv_machine = {
|
||||
|
1013
hw/xenfb.c
Normal file
1013
hw/xenfb.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user