qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] the need for if=none for -drive?
@ 2014-11-02  7:21 Michael Tokarev
  2014-11-03 19:15 ` John Snow
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Tokarev @ 2014-11-02  7:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: John Snow, Markus Armbruster

All "modern" 2-way drive/device specifications need to explicitly
specify if=none for the drive for it to not be used in the default
ide bus implicitly.

But how about using some if=unspecified implicitly for all devices
which don't specify if=, pick any devices from that list which are
referenced from -device, and only add those which left (plus the
ones with explicit if=ide) 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={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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-08 13:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-02  7:21 [Qemu-devel] the need for if=none for -drive? Michael Tokarev
2014-11-03 19:15 ` John Snow
2014-12-17 11:52   ` Markus Armbruster
2015-01-08 13:47     ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).