1
0
mirror of https://passt.top/passt synced 2024-06-28 05:52:41 +00:00

qrap: Drop args in JSON format

When JSON support was introduced, the drop_args array has
not been updated accordingly.

Fixes: b944ca1855 ("qrap: Support JSON syntax for -device")
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Andrea Bolognani 2023-02-24 19:49:47 +01:00 committed by Stefano Brivio
parent 16f19c87f5
commit 8828a637ba

5
qrap.c
View File

@ -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 },
};