Received: from eggs.gnu.org ([140.186.70.92]:41736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S06Tu-0006Cc-O4 for qemu-devel@nongnu.org; Wed, 22 Feb 2012 02:19:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S06To-0007nI-Bb for qemu-devel@nongnu.org; Wed, 22 Feb 2012 02:19:18 -0500 Received: from mga14.intel.com ([143.182.124.37]:51996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S06Tn-0007n5-Vx for qemu-devel@nongnu.org; Wed, 22 Feb 2012 02:19:12 -0500 From: Jordan Justen Date: Tue, 21 Feb 2012 23:18:48 -0800 Message-Id: <1329895136-20494-2-git-send-email-jordan.l.justen@intel.com> In-Reply-To: <1329895136-20494-1-git-send-email-jordan.l.justen@intel.com> References: <1329895136-20494-1-git-send-email-jordan.l.justen@intel.com> Subject: [Qemu-devel] [PATCH v11 1/9] 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 7a6613a..2c132a3 100644 --- a/blockdev.c +++ b/blockdev.c @@ -595,7 +595,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