[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <20240416021100.87652-1-zayd_qumsieh@apple.com>
Date: Mon, 15 Apr 2024 19:11:00 -0700
From: Zayd Qumsieh <zayd_qumsieh@...le.com>
To: marcan@...can.st
Cc: catalin.marinas@....com, will@...nel.org, maz@...nel.org,
mark.rutland@....com, zayd_qumsieh@...le.com, ih_justin@...le.com,
Houdek.Ryan@...-emu.org, broonie@...nel.org, ardb@...nel.org,
mjguzik@...il.com, anshuman.khandual@....com, oliver.upton@...ux.dev,
miguel.luis@...cle.com, joey.gouly@....com, cpaasch@...le.com,
keescook@...omium.org, samitolvanen@...gle.com, bhe@...hat.com,
j.granados@...sung.com, dawei.li@...ngroup.cn, akpm@...ux-foundation.org,
revest@...omium.org, david@...hat.com, shr@...kernel.io, andy.chiu@...ive.com,
josh@...htriplett.org, oleg@...hat.com, deller@....de, zev@...ilderbeest.net,
omosnace@...hat.com, ojeda@...nel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, asahi@...ts.linux.dev
Subject: Re: [PATCH 0/4] arm64: Support the TSO memory model
The patch looks great! :) I have one minor suggestion, though:
>static __always_inline bool system_has_actlr_state(void)
>{
> return IS_ENABLED(CONFIG_ARM64_ACTLR_STATE) &&
> alternative_has_cap_unlikely(ARM64_HAS_TSO_APPLE);
>}
ACTLR_EL1.TSO is not exposed for writing on Virtual Machines on all
versions of MacOS. However, AIDR_EL1 may still advertise TSO, whether
or not ACTLR_EL1.TSO is writable. Could you modify the patch such that
we check the writability of ACTLR_EL1.TSO in system_has_actlr_state
(or once on startup, and cache it, since reading from AIDR_EL1 causes
a trap to Hypervisor.fwk)?
Thanks,
Zayd
Powered by blists - more mailing lists