Patchwork [2/9] support media=cdrom for if=none

login
register
mail settings
Submitter Gerd Hoffmann
Date Sept. 14, 2009, 3:49 p.m.
Message ID <1252943364-32705-3-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/33585/
State Superseded
Headers show

Comments

Gerd Hoffmann - Sept. 14, 2009, 3:49 p.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/vl.c b/vl.c
index 0e61333..eb01da7 100644
--- a/vl.c
+++ b/vl.c
@@ -2176,6 +2176,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) {
@@ -2196,7 +2197,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 */