From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sc922-0008Ne-0L for qemu-devel@nongnu.org; Wed, 06 Jun 2012 01:43:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sc920-0006wX-3W for qemu-devel@nongnu.org; Wed, 06 Jun 2012 01:43:45 -0400 Received: from e37.co.us.ibm.com ([32.97.110.158]:49700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sc91z-0006wC-TS for qemu-devel@nongnu.org; Wed, 06 Jun 2012 01:43:44 -0400 Received: from /spool/local by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 5 Jun 2012 23:43:40 -0600 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 5CAC71FF001C for ; Wed, 6 Jun 2012 05:43:16 +0000 (WET) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q565gm72087728 for ; Tue, 5 Jun 2012 23:43:00 -0600 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q565hNwb008530 for ; Tue, 5 Jun 2012 23:43:23 -0600 Message-ID: <4FCEEDC5.7090807@us.ibm.com> Date: Wed, 06 Jun 2012 13:42:29 +0800 From: Anthony Liguori MIME-Version: 1.0 References: <1338953515.7150.150.camel@pasglop> In-Reply-To: <1338953515.7150.150.camel@pasglop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [qemu-devel][RFC] Enable usb with default options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt Cc: li zhang , qemu-devel@nongnu.org, zhlcindy@linux.vnet.ibm.com On 06/06/2012 11:31 AM, Benjamin Herrenschmidt wrote: > On Wed, 2012-06-06 at 10:52 +0800, li zhang wrote: >> Hi Anthony, >> >> >> Any comment on this? > > Allright, this is all quite confusing... > > He's what I think should happen: > > When no option is passed -at-all-, we should have vga std and usb ohci + > usb mouse + usb ps2. > > When -nodefault is passed, we should have none of the above. -nodefault is a pretty ugly hack. I don't think there's any good reason to involve -nodefault into this discussion. > > -vga should only affect vga (a shortcut for -device > pick_your_vga_poison) Ack. > > -usb should be essentially useless by default unless -nodefault is > passed in which case it is necessary to enable usb support, and -device > (or equivalent) to manually add the keyboard and mouse (libvirt). If you want pseries to always have usb, just make it there by default and yeah, -usb would be useless. If you want the option to not have usb, introduce a machine option I guess. I think it's over thinking it though. There's little harm in having a usb controller present all the time. Regards, Anthony Liguori > > That's the best I can think of ... however it might be a bit tricky > seeing how qemu does things in vl.c at the moment, we might want to > introduce a default_usb variable which is used to set usb_enabled. > > BTW. The mac models should essentially behave the same, at least the > 64-bit one (32-bit supports CUDA for keyboard/mouse so USB isn't > strictly necessary). > > Cheers, > Ben. >> >> Thanks. >> >> On Tue, Jun 5, 2012 at 5:48 PM, li zhang wrote: >> Hi all, >> >> For pseries, when creating VMs with "-vga std", >> it requires usb mouse and usb kbd devices to be added. >> >> But with default options, vga is enabled and usb is disabled. >> User may use default options as the following commands: >> >> $qemu -M pseries >> >> If vga is enabled, usb mouse and usb kbd is disabled, >> the mouse and kbd can't be used. So it's very hard for >> users to use. >> >> I think it's necessary to enable usb with default options. >> >> Any idea about that? >> Your comments are very appreciated. :) >> >> Thanks. >> -Li >> >> >> >> >> -- >> >> >> Best Regards >> -Li >> >> > >