mirror of https://gitee.com/openkylin/qemu.git
support media=cdrom for if=none
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
71077c1cb0
commit
c219331eb0
2
vl.c
2
vl.c
|
@ -2176,6 +2176,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
|
||||||
case IF_IDE:
|
case IF_IDE:
|
||||||
case IF_SCSI:
|
case IF_SCSI:
|
||||||
case IF_XEN:
|
case IF_XEN:
|
||||||
|
case IF_NONE:
|
||||||
switch(media) {
|
switch(media) {
|
||||||
case MEDIA_DISK:
|
case MEDIA_DISK:
|
||||||
if (cyls != 0) {
|
if (cyls != 0) {
|
||||||
|
@ -2196,7 +2197,6 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
|
||||||
break;
|
break;
|
||||||
case IF_PFLASH:
|
case IF_PFLASH:
|
||||||
case IF_MTD:
|
case IF_MTD:
|
||||||
case IF_NONE:
|
|
||||||
break;
|
break;
|
||||||
case IF_VIRTIO:
|
case IF_VIRTIO:
|
||||||
/* add virtio block device */
|
/* add virtio block device */
|
||||||
|
|
Loading…
Reference in New Issue