Skip to contentSkip to conversation

ioemu: move xenfb frontend to its own file

PATCH In review Samuel Thibault 4 participants 7 messages Jun 16, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ioemu: move xenfb frontend to its own file

ioemu: move xenfb frontend to its own file, since it does not really belong to hw/, but to /, like sdl.c and vnc.c.

tools/ioemu/Makefile.target +3 -0
diff -r 0df3bf8aac1e tools/ioemu/Makefile.target
@@ -444,6 +444,9 @@
 VL_OBJS+= xen_machine_fv.o
 VL_OBJS+= xen_machine_pv.o
 VL_OBJS+= xenfb.o
+ifdef CONFIG_STUBDOM
+VL_OBJS+= xenfbfront.o
+endif
 VL_OBJS+= xen_console.o
 ifndef CONFIG_STUBDOM
 VL_OBJS+= tpm_tis.o
tools/ioemu/hw/xenfb.c +2 -315

341 lines not on this page · raw message

tools/ioemu/hw/xenfb.h +2 -0
diff -r 0df3bf8aac1e tools/ioemu/hw/xenfb.h
@@ -9,5 +9,7 @@
 
 struct xenfb *xenfb_new(int domid, DisplayState *ds);
 void xenfb_shutdown(struct xenfb *xenfb);
+extern const unsigned char atkbd_set2_keycode[512];
+extern const unsigned char atkbd_unxlate_table[128];
 
 #endif
tools/ioemu/xenfbfront.c new file +315 -0

315 lines not on this page · raw message

#1 lore raw
Quoted 2 lines · Samuel Thibault

ioemu: move xenfb frontend to its own file, since it does not really belong to hw/, but to /, like sdl.c and vnc.c.

Yes, it does belong in hw/ because it is providing a hardware backend impl - it just happens to be virtual hardware.

Daniel.

Signature · 4 lines
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
#2 lore raw
Quoted 6 lines · Daniel P. Berrange
Quoted 2 lines · Samuel Thibault

ioemu: move xenfb frontend to its own file, since it does not really belong to hw/, but to /, like sdl.c and vnc.c.

Yes, it does belong in hw/ because it is providing a hardware backend impl - it just happens to be virtual hardware.

Doesn't hw/ exclusively contain device models, which the xenfb frontend is not?

-- Keir

#3 lore raw
In reply to Daniel P. Berrange
Quoted 6 lines · Daniel P. Berrange, le Mon 16 Jun 2008 17:40:47 +0100, a écrit :
Quoted 2 lines · Samuel Thibault

ioemu: move xenfb frontend to its own file, since it does not really belong to hw/, but to /, like sdl.c and vnc.c.

Yes, it does belong in hw/ because it is providing a hardware backend impl - it just happens to be virtual hardware.

Not the frontend part, which is used by stubdom for the graphical output.

Samuel

#4 lore raw
Quoted 10 lines · Samuel Thibault
Quoted 6 lines · Daniel P. Berrange, le Mon 16 Jun 2008 17:40:47 +0100, a écrit :
Quoted 2 lines · Samuel Thibault

ioemu: move xenfb frontend to its own file, since it does not really belong to hw/, but to /, like sdl.c and vnc.c.

Yes, it does belong in hw/ because it is providing a hardware backend impl - it just happens to be virtual hardware.

Not the frontend part, which is used by stubdom for the graphical output.

Oh, I see - I thought it was moving the backend part too. No problem.

Regards,
Daniel.

Signature · 4 lines
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
#5 lore raw
In reply to Samuel Thibault
Quoted 10 lines · Samuel Thibault, le Mon 16 Jun 2008 17:44:16 +0100, a écrit :
Quoted 6 lines · Daniel P. Berrange, le Mon 16 Jun 2008 17:40:47 +0100, a écrit :
Quoted 2 lines · Samuel Thibault

ioemu: move xenfb frontend to its own file, since it does not really belong to hw/, but to /, like sdl.c and vnc.c.

Yes, it does belong in hw/ because it is providing a hardware backend impl - it just happens to be virtual hardware.

Not the frontend part, which is used by stubdom for the graphical output.

(i.e. it is an alternative to sdl and vnc).

Samuel