qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/4] usb-msd: Add usb-storage, removable=on|off property
@ 2011-01-24 15:34 Stefan Hajnoczi
  2011-01-24 15:34 ` [Qemu-devel] [PATCH v4 1/4] scsi-disk: Allow overriding SCSI INQUIRY removable bit Stefan Hajnoczi
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2011-01-24 15:34 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Christoph Hellwig, Justin M. Forbes,
	Markus Armbruster

Allow overriding the SCSI INQUIRY removable (RMB) bit for scsi-disk and usb-msd
devices.  In particular this addresses the problem that some usb-msd devices
have the bit set while other do not have it set.  Now the user can choose and
get desired guest behavior.

qemu -usb
    -drive if=none,file=test.img,cache=none,id=disk0
    -device usb-storage,drive=disk0,removable=on

The default is off.

v4:
 * Explicitly state that scsi-generic does not support the removable bit override
 * Try to make the scsi_bus_legacy_add_drive() commit description clearer

v3:
 * Document removable property in qdev-device-use.txt
 * Use bit number 0 instead of bit 1 for the qdev property

v2:
 * Rewritten to override the bit at the scsi-disk level

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

end of thread, other threads:[~2011-01-24 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-24 15:34 [Qemu-devel] [PATCH v4 0/4] usb-msd: Add usb-storage, removable=on|off property Stefan Hajnoczi
2011-01-24 15:34 ` [Qemu-devel] [PATCH v4 1/4] scsi-disk: Allow overriding SCSI INQUIRY removable bit Stefan Hajnoczi
2011-01-24 15:34 ` [Qemu-devel] [PATCH v4 2/4] scsi: Allow scsi_bus_legacy_add_drive() to set " Stefan Hajnoczi
2011-01-24 15:35 ` [Qemu-devel] [PATCH v4 3/4] usb-msd: Propagate removable bit to SCSI device Stefan Hajnoczi
2011-01-24 15:35 ` [Qemu-devel] [PATCH v4 4/4] docs: Document scsi-disk and usb-storage removable parameter Stefan Hajnoczi
2011-01-24 15:55 ` [Qemu-devel] Re: [PATCH v4 0/4] usb-msd: Add usb-storage, removable=on|off property Kevin Wolf

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).