From: "Alex Bennée" <alex.bennee@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org,
"Marcin Juszkiewicz" <marcin.juszkiewicz@linaro.org>,
"Leif Lindholm" <quic_llindhol@quicinc.com>,
"Radoslaw Biernacki" <rad@semihalf.com>,
qemu-stable@nongnu.org, "Andrei Homescu" <ahomescu@google.com>,
"Arve Hjønnevåg" <arve@google.com>,
"Rémi Denis-Courmont" <remi.denis.courmont@huawei.com>
Subject: Re: [PATCH 3/3] target/arm: implement SEL2 physical and virtual timers
Date: Wed, 18 Dec 2024 17:07:53 +0000 [thread overview]
Message-ID: <877c7w5386.fsf@draig.linaro.org> (raw)
In-Reply-To: <CAFEAcA_AgkVcVm5nfCNb=PjB5qnYahTUuQxi-U=um92BFokccw@mail.gmail.com> (Peter Maydell's message of "Tue, 17 Dec 2024 13:34:49 +0000")
Peter Maydell <peter.maydell@linaro.org> writes:
> On Fri, 6 Dec 2024 at 16:02, Alex Bennée <alex.bennee@linaro.org> wrote:
>>
>> When FEAT_SEL2 was implemented the SEL2 timers where missed. This
>> shows up when building the latest Hafnium with SPMC_AT_EL=2. The
>> actual implementation utilises the same logic as the rest of the
>> timers so all we need to do is:
>>
>> - define the timers and their access functions
>> - conditionally add the correct system registers
>> - create a new accessfn as the rules are subtly different to the
>> existing secure timer
>
>> diff --git a/include/hw/arm/bsa.h b/include/hw/arm/bsa.h
>> index 8eaab603c0..b4ecca1b1c 100644
>> --- a/include/hw/arm/bsa.h
>> +++ b/include/hw/arm/bsa.h
>> @@ -22,6 +22,8 @@
>> #define QEMU_ARM_BSA_H
>>
>> /* These are architectural INTID values */
>> +#define ARCH_TIMER_S_VIRT_EL2_IRQ 19
>
> Can we call this ARM_TIMER_S_EL2_VIRT_IRQ please?
I'm going to assume you mean ARCH_TIMER_S_EL2_VIRT_IRQ ;-)
> We currently have ARCH_TIMER_NS_EL2_VIRT_IRQ
> so we should be consistent about where in
> the name we put the "VIRT" bit.
>
>> +#define ARCH_TIMER_S_EL2_IRQ 20
>> #define VIRTUAL_PMU_IRQ 23
>> #define ARCH_GIC_MAINT_IRQ 25
>> #define ARCH_TIMER_NS_EL2_IRQ 26
>
> -- PMM
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
prev parent reply other threads:[~2024-12-18 17:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-06 16:02 [PATCH 0/3] target/arm: implement SEL2 physical and virtual timers Alex Bennée
2024-12-06 16:02 ` [PATCH 1/3] target/arm: document the architectural names of our GTIMERs Alex Bennée
2024-12-16 14:08 ` Peter Maydell
2024-12-06 16:02 ` [PATCH 2/3] target/arm: ensure cntvoff_el2 also used for EL2 virt timer Alex Bennée
2024-12-06 16:02 ` [PATCH 3/3] target/arm: implement SEL2 physical and virtual timers Alex Bennée
2024-12-16 18:14 ` Peter Maydell
2024-12-16 19:32 ` Alex Bennée
2024-12-17 10:26 ` Peter Maydell
2024-12-17 13:34 ` Peter Maydell
2024-12-18 17:07 ` Alex Bennée [this message]
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=877c7w5386.fsf@draig.linaro.org \
--to=alex.bennee@linaro.org \
--cc=ahomescu@google.com \
--cc=arve@google.com \
--cc=marcin.juszkiewicz@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=quic_llindhol@quicinc.com \
--cc=rad@semihalf.com \
--cc=remi.denis.courmont@huawei.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.