Re: [Qemu-devel] [Qemu-ppc][PATCH v8 1/2] Add USB option in machine options

2012-08-14 Thread Li Zhang
On Wed, Aug 15, 2012 at 2:08 AM, Alexander Graf wrote: > > > On 14.08.2012, at 19:49, Li Zhang wrote: > >> When -usb option is used, global varible usb_enabled is set. >> And all the plafrom will create one USB controller according >> to this variable. In fact, global varibles make code hard >> t

Re: [Qemu-devel] [Qemu-ppc][PATCH v8 1/2] Add USB option in machine options

2012-08-14 Thread Alexander Graf
On 14.08.2012, at 19:49, Li Zhang wrote: > When -usb option is used, global varible usb_enabled is set. > And all the plafrom will create one USB controller according > to this variable. In fact, global varibles make code hard > to read. > > So this patch is to remove global variable usb_enabl

[Qemu-devel] [Qemu-ppc][PATCH v8 1/2] Add USB option in machine options

2012-08-14 Thread Li Zhang
When -usb option is used, global varible usb_enabled is set. And all the plafrom will create one USB controller according to this variable. In fact, global varibles make code hard to read. So this patch is to remove global variable usb_enabled and add USB option in machine options. All the plaform