[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 41/42] target/arm: Implement FEAT_HAFDBS
From: |
Peter Maydell |
Subject: |
Re: [PATCH v3 41/42] target/arm: Implement FEAT_HAFDBS |
Date: |
Fri, 7 Oct 2022 17:04:24 +0100 |
On Fri, 7 Oct 2022 at 14:47, Peter Maydell <peter.maydell@linaro.org> wrote:
> Do we really need to go all the way back to restart_atomic_update?
> Are we allowed to do the access and dirty bit updates with separate
> atomic accesses?
I've just discovered that the latest revision of the Arm ARM (rev I.a)
is clearer on this -- R_SGJBL and I_YZSVV clearly say that we need to
go back to restart_atomic_update for dirty bit updates, and it's a
reasonable assumption that this is true also for atomic updates.
And R_PRHKD says you're permitted to do everything in one rmw,
which clearly implies that you're permitted also not to. And if
you restart the descriptor handling it's architecturally not
distinguishable whether you did one rmw or two. So both of these
are fine the way you have them in your patch.
thanks
-- PMM
- [PATCH v3 36/42] target/arm: Add ARMFault_UnsuppAtomicUpdate, (continued)
- [PATCH v3 36/42] target/arm: Add ARMFault_UnsuppAtomicUpdate, Richard Henderson, 2022/10/01
- [PATCH v3 37/42] target/arm: Remove loop from get_phys_addr_lpae, Richard Henderson, 2022/10/01
- [PATCH v3 38/42] target/arm: Fix fault reporting in get_phys_addr_lpae, Richard Henderson, 2022/10/01
- [PATCH v3 39/42] target/arm: Don't shift attrs in get_phys_addr_lpae, Richard Henderson, 2022/10/01
- [PATCH v3 41/42] target/arm: Implement FEAT_HAFDBS, Richard Henderson, 2022/10/01
[PATCH v3 42/42] target/arm: Use the max page size in a 2-stage ptw, Richard Henderson, 2022/10/01
[PATCH v3 40/42] target/arm: Consider GP an attribute in get_phys_addr_lpae, Richard Henderson, 2022/10/01
Re: [PATCH v3 00/42] target/arm: Implement FEAT_HAFDBS, Peter Maydell, 2022/10/10