On Thu, May 29, 2025 at 05:10:48 +0000, Kazuhiro Abe (Fujitsu) wrote:
On 5/20/25 17:54, Peter Krempa wrote:
> On Tue, May 20, 2025 at 17:28:26 +0900, Kazuhiro Abe wrote:
> > From: Akio Kakuno <fj3333bs(a)fujitsu.com>
> >
> > - This test was added to check qemu capabilities for Arm
> > CCA support.
>
> IF
>
> > This test was created using the method described in the
> > documentation.
> >
> > Signed-off-by: Kazuhiro Abe <fj1078ii(a)aa.jp.fujitsu.com>
> > ---
> > .../caps_9.1.0_aarch64.replies | 36222
> ++++++++++++++++
> > .../caps_9.1.0_aarch64.xml | 530 +
> > 2 files changed, 36752 insertions(+)
> > create mode 100644
> > tests/qemucapabilitiesdata/caps_9.1.0_aarch64.replies
> > create mode 100644 tests/qemucapabilitiesdata/caps_9.1.0_aarch64.xml
>
> Note that I'll be commenting only on the capability testing related matter, not
the
> rest of the series.
>
> > diff --git a/tests/qemucapabilitiesdata/caps_9.1.0_aarch64.replies
> > b/tests/qemucapabilitiesdata/caps_9.1.0_aarch64.replies
> > new file mode 100644
> > index 0000000000..906a21f0c6
> > --- /dev/null
> > +++ b/tests/qemucapabilitiesdata/caps_9.1.0_aarch64.replies
> > @@ -0,0 +1,36222 @@
> > +{
> > + "execute": "qmp_capabilities",
> > + "id": "libvirt-1"
> > +}
> > +
> > +{
> > + "return": {},
> > + "id": "libvirt-1"
> > +}
> > +
> > +{
> > + "execute": "query-version",
> > + "id": "libvirt-2"
> > +}
> > +
> > +{
> > + "return": {
> > + "qemu": {
> > + "micro": 91,
> > + "minor": 1,
> > + "major": 9
>
> This is from 9.2.0-rc1. So firstly the file is named wrong, because it was supposed
> to be 'caps_9.2.0_aarch64.replies' instead.
>
> Also except for the currently developed release we require that the .replies files
> are generated from the final release versions and not the RCs or any other
> non-final code.
>
> The libvirt tree already has qemu caps for 9.2.0 and 10.0.0 for aarch64.
>
> What makes these special?
>
> If there's a reason to have specific capabilities please add a
'variant'
> per tests/qemucapabilitiesdata/README.rst
Thanks for your comment.
These were generated from a special QEMU version which support ARM CCA based on 9.2.
So as a temporary measure, I will add a variant to the replies file,
and the name will be caps_9.2.0_aarch64+armrme.replies.
I'd expect that now that qemu-10.0 is out you'd be targetting at least
qemu-10.1 [1] as ...
Note that, once the patch about Arm CCA support is merged,
we will change the replies file name.
... it's not yet merged as you are saying.
[1] We do allow capabilities captured from the currently in development
tree but:
- they must be based on a commit from official qemu git
- you will have to update them to the final version once qemu-N+1
releases.
But since it's not merged yet your patch will need to stay RFC. Please
make sure thoug to note it in the capabilities patch that it's not the
final version yet so that there's no confusion.
Your patch looked like it was something which already exists based on
the commit message and I didn't read the cover letter because I wasn't
too interested in the series itself, I'm just making sure that
capabilities dumps are handled properly so that I don't have to deal
with it later.