From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PULL 2/3] usb: add storage hotplug documentation
Date: Tue, 12 Jul 2016 10:48:09 +0200 [thread overview]
Message-ID: <1468313290-14308-3-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1468313290-14308-1-git-send-email-kraxel@redhat.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1466667901-1341-1-git-send-email-kraxel@redhat.com
---
docs/usb-storage.txt | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/docs/usb-storage.txt b/docs/usb-storage.txt
index c5a3866..fbc1f2e 100644
--- a/docs/usb-storage.txt
+++ b/docs/usb-storage.txt
@@ -40,6 +40,18 @@ numbers must be continuous, i.e. for three devices you must use 0+1+2.
The 0+1+5 numbering from the "usb-uas" example isn't going to work
with "usb-bot".
+Starting with qemu version 2.7 usb-bot and usb-uas devices can be
+hotplugged. In the hotplug case they are added with "attached =
+false" so the guest will not see the device until the "attached"
+property is explicitly set to true. That allows to attach one or more
+scsi devices before making the device visible to the guest, i.e. the
+workflow looks like this:
+
+ (1) device-add usb-bot,id=foo
+ (2) device-add scsi-{hd,cd},bus=foo.0,lun=0
+ (2b) optionally add more devices (luns 1 ... 15).
+ (3) scripts/qmp/qom-set foo.attached = true
+
enjoy,
Gerd
--
1.8.3.1
next prev parent reply other threads:[~2016-07-12 8:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-12 8:48 [Qemu-devel] [PULL 0/3] usb: misc fixes Gerd Hoffmann
2016-07-12 8:48 ` [Qemu-devel] [PULL 1/3] nec-usb-xhci: set the device state to USB_STATE_DEFAULT Gerd Hoffmann
2016-07-12 8:48 ` Gerd Hoffmann [this message]
2016-07-12 8:48 ` [Qemu-devel] [PULL 3/3] xen-usb: Fix 32bit build Gerd Hoffmann
2016-07-12 11:34 ` [Qemu-devel] [PULL 0/3] usb: misc fixes Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1468313290-14308-3-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).