@@ -4580,3 +4580,15 @@ QemuOptsList qemu_drive_opts = {
{ /* end of list */ }
},
};
+
+QemuOptsList qemu_rdrive_opts = {
+ .name = "rdrive",
+ .head = QTAILQ_HEAD_INITIALIZER(qemu_rdrive_opts.head),
+ .desc = {
+ /*
+ * no elements => accept any params
+ * validation will happen later
+ */
+ { /* end of list */ }
+ },
+};
@@ -193,5 +193,7 @@ extern QemuOptsList qemu_nic_opts;
extern QemuOptsList qemu_net_opts;
extern QemuOptsList qemu_global_opts;
extern QemuOptsList qemu_mon_opts;
+extern QemuOptsList qemu_rdevice_opts;
+extern QemuOptsList qemu_rdrive_opts;
#endif
@@ -964,6 +964,15 @@ QemuOptsList qemu_global_opts = {
},
};
+QemuOptsList qemu_rdevice_opts = {
+ .name = "rdevice",
+ .implied_opt_name = "driver",
+ .head = QTAILQ_HEAD_INITIALIZER(qemu_rdevice_opts.head),
+ .desc = {
+ { /* end of list */ }
+ },
+};
+
int qemu_global_option(const char *str)
{
char driver[64], property[64];
@@ -535,6 +535,17 @@ Like the KCS interface, but defines a BT interface. The default port is
ETEXI
+DEF("rdevice", HAS_ARG, QEMU_OPTION_rdevice,
+ "-rdevice driver[,prop[=value][,...]]\n"
+ " add device (based on driver)\n"
+ " prop=value,... sets driver properties\n"
+ " use '-device help' to print all possible drivers\n"
+ " use '-device driver,help' to print all possible properties\n",
+ QEMU_ARCH_ALL)
+STEXI
+Remote device options.
+ETEXI
+
DEF("name", HAS_ARG, QEMU_OPTION_name,
"-name string1[,process=string2][,debug-threads=on|off]\n"
" set the name of the guest\n"
@@ -786,6 +797,21 @@ Please refer to the QAPI documentation of the @code{blockdev-add} QMP command.
ETEXI
+DEF("rdrive", HAS_ARG, QEMU_OPTION_rdrive,
+ "-rdrive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n"
+ " [,cache=writethrough|writeback|none|directsync|unsafe][,format=f]\n"
+ " [,snapshot=on|off][,rerror=ignore|stop|report]\n"
+ " [,werror=ignore|stop|report|enospc][,id=name][,aio=threads|native]\n"
+ " [,readonly=on|off][,copy-on-read=on|off]\n"
+ " [,discard=ignore|unmap][,detect-zeroes=on|off|unmap]\n"
+ " [[,bps=b]|[[,bps_rd=r][,bps_wr=w]]]\n"
+ " [[,iops=i]|[[,iops_rd=r][,iops_wr=w]]]\n"
+ " [[,bps_max=bm]|[[,bps_rd_max=rm][,bps_wr_max=wm]]]\n"
+ " [[,iops_max=im]|[[,iops_rd_max=irm][,iops_wr_max=iwm]]]\n"
+ " [[,iops_size=is]]\n"
+ " [[,group=g]]\n"
+ " use 'file' as a drive image\n", QEMU_ARCH_ALL)
+
DEF("drive", HAS_ARG, QEMU_OPTION_drive,
"-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n"
" [,cache=writethrough|writeback|none|directsync|unsafe][,format=f]\n"