aboutgitcodebugslistschat
path: root/qrap.c
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2023-02-24 19:49:46 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-02-27 18:56:20 +0100
commit16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9 (patch)
tree1860b6351d8431462e5365db197a0e64d8a3aa8b /qrap.c
parent9cec4309c9c9885ce3bcaa473726db6243ec6fcc (diff)
downloadpasst-16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9.tar
passt-16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9.tar.gz
passt-16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9.tar.bz2
passt-16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9.tar.lz
passt-16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9.tar.xz
passt-16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9.tar.zst
passt-16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9.zip
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: 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qrap.c b/qrap.c
index 2443fa3..5c18cec 100644
--- a/qrap.c
+++ b/qrap.c
@@ -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
},
{