From: Stefano Brivio <sbrivio@redhat.com>
To: Andrea Bolognani <abologna@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH] qrap: Support JSON syntax for -device
Date: Sat, 22 Oct 2022 10:19:43 +0200 [thread overview]
Message-ID: <20221022101943.6ece3c3c@elisabeth> (raw)
In-Reply-To: <20221020090419.820559-1-abologna@redhat.com>
Hi Andrea,
On Thu, 20 Oct 2022 11:04:19 +0200
Andrea Bolognani <abologna@redhat.com> wrote:
> Starting with version 8.1.0, libvirt uses JSON syntax when
> generating the arguments to -device, so they will now look like
>
> {"driver":"virtio-scsi-pci","bus":"pci.3","addr":"0x0"}
>
> instead of
>
> virtio-scsi-pci,bus=pci.3,addr=0x0
>
> qrap needs to parse these arguments and extract the bus number
> in order to figure out what address to use for the virtio-net
> device it adds, and the libvirt change described above has
> broken this parsing logic.
>
> Tweak the code so that both styles are accepted and handled
> correctly.
>
> Note that, when JSON is in use, qrap needs to generate its own
> command line options in that format as well or things will not
> work as expected.
>
> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Thanks for the patch, and welcome to the git log!
For context, qrap will finally become useless once this patchset by
Laurent:
https://patchew.org/QEMU/20221021090922.170074-1-lvivier@redhat.com/
lands in qemu -- that should happen soon.
However, we'll need to keep it around for a little longer, until an
updated version of qemu reaches distributions, and, after that, still
give a bit of time to users, so this is absolutely useful and
appreciated. I just applied it.
--
Stefano
next prev parent reply other threads:[~2022-10-22 8:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-20 9:04 [PATCH] qrap: Support JSON syntax for -device Andrea Bolognani
2022-10-22 8:19 ` Stefano Brivio [this message]
2022-10-24 10:08 ` Andrea Bolognani
2022-10-24 12:12 ` Stefano Brivio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221022101943.6ece3c3c@elisabeth \
--to=sbrivio@redhat.com \
--cc=abologna@redhat.com \
--cc=passt-dev@passt.top \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).