From: Peter Maydell <peter.maydell@linaro.org>
To: Andrew Jones <drjones@redhat.com>
Cc: "Richard Henderson" <richard.henderson@linaro.org>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Markus Armbruster" <armbru@redhat.com>,
"Eric Auger" <eric.auger@redhat.com>,
qemu-arm <qemu-arm@nongnu.org>,
"Igor Mammedov" <imammedo@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Dave P Martin" <Dave.Martin@arm.com>
Subject: Re: [PATCH v6 0/9] target/arm/kvm: enable SVE in guests
Date: Mon, 21 Oct 2019 13:36:58 +0100 [thread overview]
Message-ID: <CAFEAcA8pV5batrPk+J6RLU2rv9SNAmL8JS9Kd9tWP3pD-m29eA@mail.gmail.com> (raw)
In-Reply-To: <20191016085408.24360-1-drjones@redhat.com>
On Wed, 16 Oct 2019 at 09:54, Andrew Jones <drjones@redhat.com> wrote:
>
> Since Linux kernel v5.2-rc1 KVM has support for enabling SVE in guests.
> This series provides the QEMU bits for that enablement. First, we
> select existing CPU properties representing features we want to
> advertise in addition to the SVE vector lengths and prepare
> them for a qmp query. Then we introduce the qmp query, applying
> it immediately to those selected features. We also document ARM CPU
> features at this time. We next add a qtest for the selected CPU
> features that uses the qmp query for its tests - and we continue to
> add tests as we add CPU features with the following patches. So then,
> once we have the support we need for CPU feature querying and testing,
> we add our first SVE CPU feature property, 'sve', which just allows
> SVE to be completely enabled/disabled. Following that feature property,
> we add all 16 vector length properties along with the input validation
> they need and tests to prove the validation works. At this point the
> SVE features are still only for TCG, so we provide some patches to
> prepare for KVM and then a patch that allows the 'max' CPU type to
> enable SVE with KVM, but at first without vector length properties.
> After a bit more preparation we add the SVE vector length properties
> to the KVM-enabled 'max' CPU type along with the additional input
> validation and tests that that needs. Finally we allow the 'host'
> CPU type to also enjoy these properties by simply sharing them with it.
This fails 'make check' on an aarch32 box with KVM support:
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
QTEST_QEMU_BINARY=arm-softmmu/qemu-system-arm QTEST_QEMU_IMG=qemu-img
tests/arm-cpu-features -m=quick -k --tap < /dev/null |
./scripts/tap-driver.pl --test-name="arm-cpu-features"
PASS 1 arm-cpu-features /arm/arm/query-cpu-model-expansion
**
ERROR:/home/pm215/qemu/tests/arm-cpu-features.c:420:test_query_cpu_model_expansion_kvm:
assertion failed: (resp_has_props(_resp))
Aborted
ERROR - too few tests run (expected 2, got 1)
/home/pm215/qemu/tests/Makefile.include:902: recipe for target
'check-qtest-arm' failed
make: *** [check-qtest-arm] Error 1
make: Leaving directory '/home/pm215/qemu/build/arm'
thanks
-- PMM
next prev parent reply other threads:[~2019-10-21 12:40 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-16 8:53 [PATCH v6 0/9] target/arm/kvm: enable SVE in guests Andrew Jones
2019-10-16 8:54 ` [PATCH v6 1/9] target/arm/monitor: Introduce qmp_query_cpu_model_expansion Andrew Jones
2019-10-22 15:39 ` Beata Michalska
2019-10-16 8:54 ` [PATCH v6 2/9] tests: arm: Introduce cpu feature tests Andrew Jones
2019-10-16 12:05 ` Philippe Mathieu-Daudé
2019-10-16 12:21 ` Andrew Jones
2019-10-16 12:26 ` Philippe Mathieu-Daudé
2019-10-16 13:34 ` Andrew Jones
2019-10-16 8:54 ` [PATCH v6 3/9] target/arm: Allow SVE to be disabled via a CPU property Andrew Jones
2019-10-17 16:42 ` Masayoshi Mizuma
2019-10-22 15:41 ` Beata Michalska
2019-10-16 8:54 ` [PATCH v6 4/9] target/arm/cpu64: max cpu: Introduce sve<N> properties Andrew Jones
2019-10-17 16:43 ` Masayoshi Mizuma
2019-10-22 15:43 ` Beata Michalska
2019-10-16 8:54 ` [PATCH v6 5/9] target/arm/kvm64: Add kvm_arch_get/put_sve Andrew Jones
2019-10-17 16:43 ` Masayoshi Mizuma
2019-10-16 8:54 ` [PATCH v6 6/9] target/arm/kvm64: max cpu: Enable SVE when available Andrew Jones
2019-10-17 16:43 ` Masayoshi Mizuma
2019-10-22 15:44 ` Beata Michalska
2019-10-16 8:54 ` [PATCH v6 7/9] target/arm/kvm: scratch vcpu: Preserve input kvm_vcpu_init features Andrew Jones
2019-10-17 16:44 ` Masayoshi Mizuma
2019-10-22 15:45 ` Beata Michalska
2019-10-16 8:54 ` [PATCH v6 8/9] target/arm/cpu64: max cpu: Support sve properties with KVM Andrew Jones
2019-10-17 16:44 ` Masayoshi Mizuma
2019-10-16 8:54 ` [PATCH v6 9/9] target/arm/kvm: host cpu: Add support for sve<N> properties Andrew Jones
2019-10-17 16:44 ` Masayoshi Mizuma
2019-10-21 12:36 ` Peter Maydell [this message]
2019-10-21 12:54 ` [PATCH v6 0/9] target/arm/kvm: enable SVE in guests Philippe Mathieu-Daudé
2019-10-21 14:23 ` Andrew Jones
2019-10-21 15:43 ` Peter Maydell
2019-10-21 16:12 ` Andrew Jones
2019-10-21 16:18 ` Peter Maydell
2019-10-22 10:29 ` Peter Maydell
2019-10-22 13:49 ` Andrew Jones
2019-10-24 11:40 ` Andrew Jones
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=CAFEAcA8pV5batrPk+J6RLU2rv9SNAmL8JS9Kd9tWP3pD-m29eA@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=Dave.Martin@arm.com \
--cc=alex.bennee@linaro.org \
--cc=armbru@redhat.com \
--cc=drjones@redhat.com \
--cc=eric.auger@redhat.com \
--cc=imammedo@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/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.
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 NNTP newsgroup(s).