[Qemu-devel] [Qemu-ppc][PATCH v5 1/4] Add usb option in machine options

2012-07-01 Thread zhlcindy
From: Li Zhang pSeries machine needs to enable USB to add a USB keyboard or USB mouse. -usb option won't be used in the future, and machine options are a better way to enable USB. So this patch is to add USB option to machine options (-machine type=pseries,usb=on/off) to enable/disable USB contr

[Qemu-devel] [Qemu-ppc][PATCH v5 3/4] Cleanup pc.h on other platforms

2012-07-01 Thread zhlcindy
From: Li Zhang The declarations of pci_vga_init() and pci_cirrus_vga_init() are moved to vga-pci.h to be called by all the platforms. So it's necessary to cleanup pc.h on the platforms other than PC which include the file and add vga-pci.h on all the plaforms to call vga related functions. This

[Qemu-devel] [Qemu-ppc][PATCH v5 0/4] Add USB option and enable vga on spapr

2012-07-01 Thread zhlcindy
From: Li Zhang v1 -> v2: * Convert USB option from char to bool. v2 -> v3: * Remove global USB option * Get USB option with qemu_opt_get_bool(). * Send vga patch for sPAPR which requires USB enabled. v3 -> v4: * Fix some English grammar and coding style faults * Replace

[Qemu-devel] [Qemu-ppc][PATCH v5 4/4] spapr: Add support for -vga option

2012-07-01 Thread zhlcindy
From: Li Zhang Also instanciate the USB keyboard and mouse when that option is used (you can still use -device to create individual devices without all the defaults) Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Li Zhang --- hw/spapr.c | 29 - 1 file chang

[Qemu-devel] [Qemu-ppc][PATCH v5 2/4] Add one new file vga-pci.h

2012-07-01 Thread zhlcindy
From: Li Zhang Functions pci_vga_init() and pci_cirrus_vga_init() are declared in pc.h. That prevents other platforms (e.g. sPAPR) to use them. This patch is to create one new file vga-pci.h and move the declarations to vga-pci.h, so that they can be shared by all the platforms. Signed-off-by:

[Qemu-devel] [PATCH 1/1] Add usb option in machine options.

2012-06-13 Thread zhlcindy
From: Li Zhang For pseries machine, it needs to enable usb to add kbd or usb mouse. -usb option won't be used in the future, and machine options is a better way to enable usb. So this patch is to add usb option to machine options (-machine type=psereis,usb=on/off) to enable/disable usb controlle