qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 0/3] usb-msd: Add usb-storage, removable=on|off p


From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH v2 0/3] usb-msd: Add usb-storage, removable=on|off property
Date: Tue, 18 Jan 2011 10:10:39 +0000

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.

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

 hw/pci-hotplug.c |    2 +-
 hw/scsi-bus.c    |    8 ++++++--
 hw/scsi-disk.c   |    3 +++
 hw/scsi.h        |    3 ++-
 hw/usb-msd.c     |    4 +++-
 5 files changed, 15 insertions(+), 5 deletions(-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]