Received: from eggs.gnu.org ([2001:4830:134:3::10]:37000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnn05-0006Xo-OL for qemu-devel@nongnu.org; Tue, 03 Dec 2013 05:14:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vnmzz-0001Kr-P0 for qemu-devel@nongnu.org; Tue, 03 Dec 2013 05:14:41 -0500 Received: from mail-bk0-f54.google.com ([209.85.214.54]:45872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnmzz-0001KZ-IN for qemu-devel@nongnu.org; Tue, 03 Dec 2013 05:14:35 -0500 Received: by mail-bk0-f54.google.com with SMTP id v16so5882054bkz.41 for ; Tue, 03 Dec 2013 02:14:34 -0800 (PST) Received: from [192.168.1.26] (ip-73-126.sn2.eutelia.it. [83.211.73.126]) by mx.google.com with ESMTPSA id no2sm78107344bkb.15.2013.12.03.02.14.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 02:14:33 -0800 (PST) Message-ID: <529DAF0B.5000909@m2r.biz> Date: Tue, 03 Dec 2013 11:14:35 +0100 From: Fabio Fantoni MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [BUG] ahci -device ide-hd|ide-cd select a bus already in use List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" I started to test/implement q35 cipset on xen hvm domUs. I found that ide disks and cdrom don't works with q35 using old qemu parameters without -device, this is not a blocking problem. I tried with new qemu parameters and ahci and the disk works. When I tried to add more that one ahci disk/cdrom devices qemu gave this error: > qemu-system-i386: -device ide-cd,drive=drive-sata-disk1,id=sata1: > Can't create IDE unit 1, bus supports only 1 units > qemu-system-i386: -device ide-cd,drive=drive-sata-disk1,id=sata1: > Device initialization failed. > qemu-system-i386: -device ide-cd,drive=drive-sata-disk1,id=sata1: > Device 'ide-cd' could not be initialized I used qemu 1.6.1 for the test and searching online I found the same problem was reported also on fedora, ubuntu and red hat bugtrackers. Looking for the solution on qemu-devel and git I found this patch: http://git.qemu.org/?p=qemu.git;a=commit;h=0ee20e665840d8a887c145b368ee121cb86a028e It is applied on qemu 1.6 but it seems it doesn't solve the problem of the selection of full bus but it only show an error when it happens. Xen with old qemu parameters use index instead of bus and unit but it seems missing if I try to use it on -device. I also read docs/qdev-device-use.txt but it doesn't mention index with new -device ide-hd|ide-cd parameters and I found nothing about if=none or any ahci disks informations, I think that this document needs to be updated/improved. Thanks for any reply.