aboutgitcodebugslistschat
path: root/qrap.c
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2023-02-24 19:49:47 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-02-27 18:56:22 +0100
commit8828a637ba5e58e3685594773206935a3bce9892 (patch)
tree69a0ffb2d42dffe4ab5ecf44cb5708e73cf3d758 /qrap.c
parent16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9 (diff)
downloadpasst-8828a637ba5e58e3685594773206935a3bce9892.tar
passt-8828a637ba5e58e3685594773206935a3bce9892.tar.gz
passt-8828a637ba5e58e3685594773206935a3bce9892.tar.bz2
passt-8828a637ba5e58e3685594773206935a3bce9892.tar.lz
passt-8828a637ba5e58e3685594773206935a3bce9892.tar.xz
passt-8828a637ba5e58e3685594773206935a3bce9892.tar.zst
passt-8828a637ba5e58e3685594773206935a3bce9892.zip
qrap: Drop args in JSON format
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 <abologna@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'qrap.c')
-rw-r--r--qrap.c5
1 files changed, 5 insertions, 0 deletions
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 },
};