qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT c219331] support media=cdrom for if=none


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT c219331] support media=cdrom for if=none
Date: Tue, 15 Sep 2009 20:16:41 -0000

From: Gerd Hoffmann <address@hidden>

Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Blue Swirl <address@hidden>

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 */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]