When JSON support was introduced, the drop_args array has
not been updated accordingly.
Fixes: b944ca185587 ("qrap: Support JSON syntax for -device")
Signed-off-by: Andrea Bolognani
---
qrap.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/qrap.c b/qrap.c
index 5c18cec..3077944 100644
--- a/qrap.c
+++ b/qrap.c
@@ -57,10 +57,15 @@ static const struct drop_arg {
{ "-netdev", NULL },
{ "-net", NULL },
{ "-device", "virtio-net-pci," },
+ { "-device", "{\"driver\":\"virtio-net-pci\"," },
{ "-device", "virtio-net-ccw," },
+ { "-device", "{\"driver\":\"virtio-net-ccw\"," },
{ "-device", "e1000," },
+ { "-device", "{\"driver\":\"e1000\"," },
{ "-device", "e1000e," },
+ { "-device", "{\"driver\":\"e1000e\"," },
{ "-device", "rtl8139," },
+ { "-device", "{\"driver\":\"rtl8139\"," },
{ 0 },
};
--
2.39.2