qemu-devel@nongnu.org
[Top] [All Lists]

[Qemu-devel] [PATCH 2/8] support media=cdrom for if=none

Subject: [Qemu-devel] [PATCH 2/8] support media=cdrom for if=none
From: Gerd Hoffmann
Date: Fri, 11 Sep 2009 14:32:25 +0200
Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxxxxx>
---
 vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vl.c b/vl.c
index c6c6a6b..316dc49 100644
--- a/vl.c
+++ b/vl.c
@@ -2187,6 +2187,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
     case IF_IDE:
     case IF_SCSI:
     case IF_XEN:
+    case IF_NONE:
         switch(media) {
        case MEDIA_DISK:
             if (cyls != 0) {
@@ -2207,7 +2208,6 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
         break;
     case IF_PFLASH:
     case IF_MTD:
-    case IF_NONE:
         break;
     case IF_VIRTIO:
         /* add virtio block device */
-- 
1.6.2.5



<Prev in Thread] Current Thread [Next in Thread>