From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjynN-0004Zy-N7 for qemu-devel@nongnu.org; Sun, 08 Jan 2012 14:52:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjynM-0004mb-7Y for qemu-devel@nongnu.org; Sun, 08 Jan 2012 14:52:45 -0500 Received: from mga02.intel.com ([134.134.136.20]:43876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjynL-0004mK-Uj for qemu-devel@nongnu.org; Sun, 08 Jan 2012 14:52:44 -0500 From: Jordan Justen Date: Sun, 8 Jan 2012 11:51:33 -0800 Message-Id: <1326052300-1172-2-git-send-email-jordan.l.justen@intel.com> In-Reply-To: <1326052300-1172-1-git-send-email-jordan.l.justen@intel.com> References: <1326052300-1172-1-git-send-email-jordan.l.justen@intel.com> Subject: [Qemu-devel] [PATCH v10 1/8] blockdev: allow read-only pflash devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jordan Justen Signed-off-by: Jordan Justen --- blockdev.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/blockdev.c b/blockdev.c index c832782..2d1b8f7 100644 --- a/blockdev.c +++ b/blockdev.c @@ -557,7 +557,8 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi) /* CDROM is fine for any interface, don't check. */ ro = 1; } else if (ro == 1) { - if (type != IF_SCSI && type != IF_VIRTIO && type != IF_FLOPPY && type != IF_NONE) { + if (type != IF_SCSI && type != IF_VIRTIO && type != IF_FLOPPY && + type != IF_NONE && type != IF_PFLASH) { error_report("readonly not supported by this bus type"); goto err; } -- 1.7.1