From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGgpC-0004Br-Ao for qemu-devel@nongnu.org; Mon, 11 Aug 2014 00:03:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGgp3-00045Z-Dw for qemu-devel@nongnu.org; Mon, 11 Aug 2014 00:03:10 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:47351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGgp3-00045M-8P for qemu-devel@nongnu.org; Mon, 11 Aug 2014 00:03:01 -0400 Received: by mail-pd0-f171.google.com with SMTP id z10so10064566pdj.16 for ; Sun, 10 Aug 2014 21:02:59 -0700 (PDT) Received: from aik.ozlabs.ibm.com (ibmaus65.lnk.telstra.net. [165.228.126.9]) by mx.google.com with ESMTPSA id mb6sm5616699pdb.96.2014.08.10.21.02.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Aug 2014 21:02:57 -0700 (PDT) Message-ID: <53E8406C.2010304@ozlabs.ru> Date: Mon, 11 Aug 2014 14:02:52 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] USB PCI host bus adapter hot plug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" Hi! I noticed that QMP's "device_add usb-ehci,id=i2,bus=pci.0" fails on PCI hotplug. The same for pci-ohci and this is because their initfn() do "dc->hotpluggable = false". So I removed those and now I can hotplug USB hosts but none of them is able to actually work: root@aiktest-le:~# echo 1 >/sys/bus/pci/rescan [ 41.143062] ohci-pci 0000:00:01.0: init err (c8700000 0000) [ 41.143133] ohci-pci 0000:00:01.0: can't start [ 41.143227] ohci-pci 0000:00:01.0: startup error -75 [ 41.144202] ohci-pci 0000:00:01.0: init 0000:00:01.0 fail, -75 root@aiktest-le:~# echo 1 >/sys/bus/pci/rescan [ 43.691067] ehci-pci 0000:00:01.0: can't setup: -110 [ 43.692424] ehci-pci 0000:00:01.0: init 0000:00:01.0 fail, -110 Why is that? Is QEMU just missing some bits or there is some fundamental issue which I just do not see? Thanks! -- Alexey