Patchwork [v3,6/6] defaults: ide-cd and scsi-cd devices suppress default CD-ROM

login
register
mail settings
Submitter Markus Armbruster
Date May 12, 2011, 3:05 p.m.
Message ID <1305212715-26767-7-git-send-email-armbru@redhat.com>
Download mbox | patch
Permalink /patch/95326/
State New
Headers show

Comments

Markus Armbruster - May 12, 2011, 3:05 p.m.
ide-hd does *not* suppress the default CD-ROM, unlike legacy
ide-drive.

scsi-cd *does* suppress it, unlike legacy scsi-disk.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 vl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/vl.c b/vl.c
index 6b9a2f6..8bd7cc6 100644
--- a/vl.c
+++ b/vl.c
@@ -277,7 +277,9 @@  static struct {
     { .driver = "isa-serial",           .flag = &default_serial    },
     { .driver = "isa-parallel",         .flag = &default_parallel  },
     { .driver = "isa-fdc",              .flag = &default_floppy    },
+    { .driver = "ide-cd",               .flag = &default_cdrom     },
     { .driver = "ide-drive",            .flag = &default_cdrom     },
+    { .driver = "scsi-cd",              .flag = &default_cdrom     },
     { .driver = "virtio-serial-pci",    .flag = &default_virtcon   },
     { .driver = "virtio-serial-s390",   .flag = &default_virtcon   },
     { .driver = "virtio-serial",        .flag = &default_virtcon   },