ioemu: move xenfb frontend to its own file
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
@@ -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
@@ -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
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.candvnc.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 :|
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.candvnc.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
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.candvnc.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
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.candvnc.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 :|
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.candvnc.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
Quoted 4 lines · Samuel Thibault
ioemu: move xenfb frontend to its own file, since it does not really belong to hw/, but to /, like
sdl.candvnc.c.Signed-off-by Samuel Thibault <[email protected]>
I like this, because it neatly separates out the stubdom code. Suggest to mention "stubdom" in the change log.