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:
parent
9cec4309c9
commit
16f19c87f5
1 changed files with 1 additions and 1 deletions
2
qrap.c
2
qrap.c
|
@ -94,7 +94,7 @@ static const struct pci_dev {
|
||||||
{
|
{
|
||||||
"pc-", "virtio-net-pci",
|
"pc-", "virtio-net-pci",
|
||||||
"bus=pci.0,addr=0x", "",
|
"bus=pci.0,addr=0x", "",
|
||||||
"\"bus\":\"pci.0\",\"addr=0x", "",
|
"\"bus\":\"pci.0\",\"addr\":\"0x", "",
|
||||||
2, /* 1: ISA bridge */ 31
|
2, /* 1: ISA bridge */ 31
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue