Re: [Qemu-devel] [PATCH] spapr: Add support for -vga option

2011-12-14 Thread Anthony Liguori
On 12/14/2011 06:00 PM, Benjamin Herrenschmidt wrote: On Wed, 2011-12-14 at 15:48 -0600, Anthony Liguori wrote: /* USB */ if (usb_enabled) { usb_ohci_init_pci(QLIST_FIRST(&spapr->phbs)->host_state.bus, -1); + if (spapr_has_graphics) { + usbdevice_create("keyboard");

Re: [Qemu-devel] [PATCH] spapr: Add support for -vga option

2011-12-14 Thread Benjamin Herrenschmidt
On Wed, 2011-12-14 at 15:48 -0600, Anthony Liguori wrote: > > /* USB */ > > if (usb_enabled) { > > > usb_ohci_init_pci(QLIST_FIRST(&spapr->phbs)->host_state.bus, -1); > > + if (spapr_has_graphics) { > > + usbdevice_create("keyboard"); > > + usbdevice_create("mouse");

Re: [Qemu-devel] [PATCH] spapr: Add support for -vga option

2011-12-14 Thread Anthony Liguori
On 12/14/2011 03:22 AM, Benjamin Herrenschmidt wrote: The -vga option is a handy "high level" option for instanciating things automatically. This adds support for it to the spapr (aka pseries) machine. Also instanciate the USB keyboard and mouse when that option is used (you can still use -devic