From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sc7I8-0005Kf-IQ for qemu-devel@nongnu.org; Tue, 05 Jun 2012 23:53:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sc7EG-00038f-AR for qemu-devel@nongnu.org; Tue, 05 Jun 2012 23:52:16 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:57355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sc7EB-00031l-SK for qemu-devel@nongnu.org; Tue, 05 Jun 2012 23:48:16 -0400 Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 6 Jun 2012 03:23:25 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q563OwWC8978928 for ; Wed, 6 Jun 2012 13:24:59 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q563W8b7011738 for ; Wed, 6 Jun 2012 13:32:08 +1000 Message-ID: <1338953515.7150.150.camel@pasglop> From: Benjamin Herrenschmidt Date: Wed, 06 Jun 2012 13:31:55 +1000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 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: li zhang Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, zhlcindy@linux.vnet.ibm.com 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. -vga should only affect vga (a shortcut for -device pick_your_vga_poison) -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). 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 > >