diff --git a/sysemu.h b/sysemu.h index ca2501539092a8111ba28c06dfc113e54d933e60..dffb2f1d7542e28241ae7283e4ff626071eb0527 100644 --- a/sysemu.h +++ b/sysemu.h @@ -144,6 +144,7 @@ extern unsigned int nb_prom_envs; #endif typedef enum { + IF_NONE, IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN, IF_COUNT } BlockInterfaceType; diff --git a/vl.c b/vl.c index d82c3d84d254422d8ab0fc2c70cbb2c20d8a2277..5bf3051902474adc688836df010d957465e91846 100644 --- a/vl.c +++ b/vl.c @@ -1982,6 +1982,9 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque, } else if (!strcmp(buf, "xen")) { type = IF_XEN; max_devs = 0; + } else if (!strcmp(buf, "none")) { + type = IF_NONE; + max_devs = 0; } else { fprintf(stderr, "qemu: unsupported bus type '%s'\n", buf); return NULL; @@ -2195,6 +2198,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque, case IF_PFLASH: case IF_MTD: case IF_VIRTIO: + case IF_NONE: break; case IF_COUNT: abort();