mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
add -drive if=none
This adds a host drive, but doesn't implicitly add a guest drive for it. First step in splitting host and guest configuration, check the following patches to see how this can be used ... Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
parent
2e810b3668
commit
a8659e90e9
2 changed files with 5 additions and 0 deletions
1
sysemu.h
1
sysemu.h
|
@ -144,6 +144,7 @@ extern unsigned int nb_prom_envs;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
IF_NONE,
|
||||||
IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN,
|
IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN,
|
||||||
IF_COUNT
|
IF_COUNT
|
||||||
} BlockInterfaceType;
|
} BlockInterfaceType;
|
||||||
|
|
4
vl.c
4
vl.c
|
@ -1982,6 +1982,9 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
|
||||||
} else if (!strcmp(buf, "xen")) {
|
} else if (!strcmp(buf, "xen")) {
|
||||||
type = IF_XEN;
|
type = IF_XEN;
|
||||||
max_devs = 0;
|
max_devs = 0;
|
||||||
|
} else if (!strcmp(buf, "none")) {
|
||||||
|
type = IF_NONE;
|
||||||
|
max_devs = 0;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "qemu: unsupported bus type '%s'\n", buf);
|
fprintf(stderr, "qemu: unsupported bus type '%s'\n", buf);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -2195,6 +2198,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
|
||||||
case IF_PFLASH:
|
case IF_PFLASH:
|
||||||
case IF_MTD:
|
case IF_MTD:
|
||||||
case IF_VIRTIO:
|
case IF_VIRTIO:
|
||||||
|
case IF_NONE:
|
||||||
break;
|
break;
|
||||||
case IF_COUNT:
|
case IF_COUNT:
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue