From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkpTV-0002AM-Jh for qemu-devel@nongnu.org; Sun, 02 Nov 2014 02:21:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkpTP-0000km-FA for qemu-devel@nongnu.org; Sun, 02 Nov 2014 02:21:21 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:47034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkpTP-0000ki-88 for qemu-devel@nongnu.org; Sun, 02 Nov 2014 02:21:15 -0500 Message-ID: <5455DB69.3080308@msgid.tls.msk.ru> Date: Sun, 02 Nov 2014 10:21:13 +0300 From: Michael Tokarev MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] the need for if=none for -drive? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: John Snow , Markus Armbruster All "modern" 2-way drive/device specifications need to explicitly specify if=3Dnone for the drive for it to not be used in the default ide bus implicitly. But how about using some if=3Dunspecified implicitly for all devices which don't specify if=3D, pick any devices from that list which are referenced from -device, and only add those which left (plus the ones with explicit if=3Dide) to the default ide bus? The change should be strighforward, the only (maybe significant) prob I see is a need to reorder -device/-drive initialization in vl.c. We might pick them up in drive_check_orphaned() too. Or, we can walk over -devices when adding -drives with if=3D{unspec,explicit}= . (this is a sort of a followup to 6b9e03a4e759876, "qtest/bios-tables: Correct Q35 command line", but ofcourse it's a topic by its own). Thanks, /mjt