From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org
Cc: Leif Lindholm <quic_llindhol@quicinc.com>,
Eric Auger <eric.auger@redhat.com>,
Radoslaw Biernacki <rad@semihalf.com>
Subject: Re: [PATCH 4/4] hw/arm/sbsa-ref: Use two-stage SMMU
Date: Mon, 19 Aug 2024 11:39:24 +0200 [thread overview]
Message-ID: <454683fd-e40d-480b-a767-8cee95fc9624@linaro.org> (raw)
In-Reply-To: <20240816161350.3706332-5-peter.maydell@linaro.org>
W dniu 16.08.2024 o 18:13, Peter Maydell pisze:
> Now that our SMMU model supports enabling both stages of translation
> at once, we can enable this in the sbsa-ref board. Existing guest
> code that only programs stage 1 and doesn't care about stage 2 should
> continue to run with the same behaviour, but guests that do want to
> do nested SMMU configurations can now do so.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Yay! Another step in getting (S)BSA ACS pass done:
Operating System View:
304 : Check SMMU S-EL2 & stage1 support : Result: PASS
Hypervisor View:
352 : Check SMMU S-EL2 & stage2 support : Result: PASS
Reviewed-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
> hw/arm/sbsa-ref.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
> index ae37a923015..396abe9c1bd 100644
> --- a/hw/arm/sbsa-ref.c
> +++ b/hw/arm/sbsa-ref.c
> @@ -621,6 +621,7 @@ static void create_smmu(const SBSAMachineState *sms, PCIBus *bus)
>
> dev = qdev_new(TYPE_ARM_SMMUV3);
>
> + object_property_set_str(OBJECT(dev), "stage", "nested", &error_abort);
> object_property_set_link(OBJECT(dev), "primary-bus", OBJECT(bus),
> &error_abort);
> sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
next prev parent reply other threads:[~2024-08-19 9:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-16 16:13 [PATCH 0/4] hw/arm: Enable 'nested' SMMU in virt, sbsa-ref Peter Maydell
2024-08-16 16:13 ` [PATCH 1/4] hw: add compat machines for 9.2 Peter Maydell
2024-08-16 16:13 ` [PATCH 2/4] hw/arm/smmuv3: Update comment documenting "stage" property Peter Maydell
2024-08-16 16:13 ` [PATCH 3/4] hw/arm/virt: Default to two-stage SMMU from virt-9.2 Peter Maydell
2024-08-16 16:13 ` [PATCH 4/4] hw/arm/sbsa-ref: Use two-stage SMMU Peter Maydell
2024-08-19 9:39 ` Marcin Juszkiewicz [this message]
2024-08-19 10:07 ` [PATCH 0/4] hw/arm: Enable 'nested' SMMU in virt, sbsa-ref Eric Auger
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=454683fd-e40d-480b-a767-8cee95fc9624@linaro.org \
--to=marcin.juszkiewicz@linaro.org \
--cc=eric.auger@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quic_llindhol@quicinc.com \
--cc=rad@semihalf.com \
/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).