From patchwork Fri Jan 21 11:00:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 79830 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A9D1FB7127 for ; Fri, 21 Jan 2011 22:14:11 +1100 (EST) Received: from localhost ([127.0.0.1]:52456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgEwS-00063e-6Z for incoming@patchwork.ozlabs.org; Fri, 21 Jan 2011 06:14:08 -0500 Received: from [140.186.70.92] (port=60383 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgEjG-0000le-W8 for qemu-devel@nongnu.org; Fri, 21 Jan 2011 06:00:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgEjD-0004CH-T9 for qemu-devel@nongnu.org; Fri, 21 Jan 2011 06:00:31 -0500 Received: from mtagate6.uk.ibm.com ([194.196.100.166]:44368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgEjD-0004BZ-K5 for qemu-devel@nongnu.org; Fri, 21 Jan 2011 06:00:27 -0500 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate6.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p0LB0QS2005853 for ; Fri, 21 Jan 2011 11:00:26 GMT Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p0LB0SLI1028212 for ; Fri, 21 Jan 2011 11:00:28 GMT Received: from d06av05.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p0LB0PrU031654 for ; Fri, 21 Jan 2011 04:00:25 -0700 Received: from stefanha-thinkpad.manchester-maybrook.uk.ibm.com (dyn-9-174-219-24.manchester-maybrook.uk.ibm.com [9.174.219.24]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p0LB0OaA031596; Fri, 21 Jan 2011 04:00:25 -0700 From: Stefan Hajnoczi To: Date: Fri, 21 Jan 2011 11:00:09 +0000 Message-Id: <1295607609-21091-5-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1295607609-21091-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1295607609-21091-1-git-send-email-stefanha@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Kevin Wolf , Christoph Hellwig , "Justin M. Forbes" , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH v3 4/4] docs: Document scsi-disk and usb-storage removable parameter X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Stefan Hajnoczi --- docs/qdev-device-use.txt | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/qdev-device-use.txt b/docs/qdev-device-use.txt index f2f9b75..e888843 100644 --- a/docs/qdev-device-use.txt +++ b/docs/qdev-device-use.txt @@ -80,7 +80,11 @@ The -device argument differs in detail for each kind of drive: This SCSI controller a single SCSI bus, named ID.0. Put a disk on it: - -device scsi-disk,drive=DRIVE-ID,bus=ID.0,scsi-id=SCSI-ID + -device scsi-disk,drive=DRIVE-ID,bus=ID.0,scsi-id=SCSI-ID,removable=RMB + + The (optional) removable parameter lets you override the SCSI INQUIRY + removable (RMB) bit for non CD-ROM devices. It is ignored for CD-ROM devices + which are always removable. RMB is "on" or "off". * if=floppy @@ -116,7 +120,12 @@ For USB devices, the old way is actually different: Provides much less control than -drive's HOST-OPTS... The new way fixes that: - -device usb-storage,drive=DRIVE-ID + -device usb-storage,drive=DRIVE-ID,removable=RMB + +The removable parameter gives control over the SCSI INQUIRY removable (RMB) +bit. USB thumbdrives usually set removable=on, while USB hard disks set +removable=off. See the if=scsi description above for details on the removable +parameter. === Character Devices ===