From 16f19c87f565f3ac9fbd86eae3e5f6b0bf6482b9 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Fri, 24 Feb 2023 19:49:46 +0100 Subject: 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 Reviewed-by: David Gibson --- qrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qrap.c') 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 }, { -- cgit v1.2.3