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

qrap: Fix support for pc machines

The JSON version of the template is incorrect, making qrap
completely unusable when JSON arguments are used together
with the pc machine type.

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:46 +01:00 committed by Stefano Brivio
parent 9cec4309c9
commit 16f19c87f5

2
qrap.c
View File

@ -94,7 +94,7 @@ static const struct pci_dev {
{
"pc-", "virtio-net-pci",
"bus=pci.0,addr=0x", "",
"\"bus\":\"pci.0\",\"addr=0x", "",
"\"bus\":\"pci.0\",\"addr\":\"0x", "",
2, /* 1: ISA bridge */ 31
},
{