Received: from eggs.gnu.org ([2001:4830:134:3::10]:51271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVwgH-0000rd-27 for qemu-devel@nongnu.org; Fri, 04 Apr 2014 01:28:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVwg8-0007NF-0x for qemu-devel@nongnu.org; Fri, 04 Apr 2014 01:28:45 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:57053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVwg7-0007M5-8o for qemu-devel@nongnu.org; Fri, 04 Apr 2014 01:28:35 -0400 Received: from /spool/local by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 4 Apr 2014 15:28:30 +1000 From: Nikunj A Dadhania In-Reply-To: <533DB876.4080008@redhat.com> References: <1396544174-8904-1-git-send-email-nikunj@linux.vnet.ibm.com> <533DA210.2010303@redhat.com> <87ppkyxllf.fsf@abhimanyu.in.ibm.com> <533DB876.4080008@redhat.com> Date: Fri, 04 Apr 2014 10:58:17 +0530 Message-ID: <87d2gx8xzi.fsf@abhimanyu.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] spapr: skip adding usb keyboard/mouse in case of -nodefaults List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org, agraf@suse.com Cc: aik@au1.ibm.com, Mark Wu , qemu-ppc@nongnu.org, Andreas =?utf-8?Q?F=C3=A4rber?= Paolo Bonzini writes: > Il 03/04/2014 21:24, Nikunj A Dadhania ha scritto: >>> > Does libvirt use "-nodefaults -machine usb=true"? It should create the >>> > OHCI controller separately instead of using "-machine". >> I see it creating: >> >> -nodefaults -usb -device usb-kbd,id=input0 -device usb-mouse,id=input1 >> >> And -usb is translated to adding "pci-ohci" controller for spapr > > Yeah, but with -nodefaults it's better to use -device directly. I think there is special handling for this in vl.c bool usb_enabled(bool default_usb) { return qemu_opt_get_bool(qemu_get_machine_opts(), "usb", has_defaults && default_usb); } And spapr.c uses this: if (usb_enabled(spapr->has_graphics)) { pci_create_simple(phb->bus, -1, "pci-ohci"); Regards Nikunj