afonso360 commented on issue #3322:
It'd be a good idea add a
target aarch64 has_lse
toruntests/atomic-rmw.clif
andruntests/atomic-rmw-2.clif
, if QEMU supports LSE.
akirilov-arm commented on issue #3322:
Currently we force QEMU to emulate a processor that lacks LSE support.
cfallin commented on issue #3322:
I was curious if QEMU has any
-cpu
options between A72 (the current) andmax
(which we disabled to avoid pointer-auth issues on Linux, per #3183); the latest source appears to have a configuration option for the A64FX as well, which is ARMv8.2 (with LSE, without PAC). Maybe we could update the CI config and try that?
cfallin commented on issue #3322:
(This was added 9 days ago so I expect we'd have to pull down a git checkout of qemu rather than build a release; but that's probably fine IMHO.)
sparker-arm commented on issue #3322:
I was curious if QEMU has any
-cpu
options between A72 (the current) andmax
(which we disabled to avoid pointer-auth issues on Linux, per #3183); the latest source appears to have a configuration option for the A64FX as well, which is ARMv8.2 (with LSE, without PAC). Maybe we could update the CI config and try that?What might be a more scalable, though less pretty option, would be to use the max configuration and turn off the features that we don't want (only PAC?) @akirilov-arm is working on that feature currently so I imagine we'd need testing at some point in the near future. But I haven't ever had to disable features with QEMU, and briefly looking at the code, I'm wondering if all the features have a nice user facing option...
afonso360 commented on issue #3322:
Reading this, it looks like we can just
-cpu max,pauth=off
. My local qemu 6.0.0 build doesn't recognize this as a invalid feature, I'll try opening a PR to see if CI fails.
afonso360 edited a comment on issue #3322:
Reading this, it looks like we can just
-cpu max,pauth=off
. My local qemu 6.0.0 build recognizes this as a valid feature, I'll try opening a PR to see if CI fails.
alexcrichton commented on issue #3322:
As a side note, this is somewhat unlikely to get used much in practice at least with Wasmtime itself due to this block which is gated on the off-by-default
stdsimd
feature (which requires nightly). If y'all are interseted in getting this supported in Wasmtime by default that'd need to be updated with a works-on-stable implementation. (I'm not sure of the status of stabilizing the required macro from libstd itself)
akirilov-arm commented on issue #3322:
Yes, we are aware of that - my colleague @adamgemmell from Arm's Rust team has proposed stabilising the ISA extension test macro in issue rust-lang/rust#86941 independently of the
stdsimd
feature. We are going to update the block after the issue is closed, so that it just checks for the target architecture. In the meantime I think it is fine to continue with the code generation optimizations, and @afonso360's suggestion enables us to do some testing.
alexcrichton commented on issue #3322:
Nice! And yeah of course I think this is fine to land (as well as any other improvements). Just because Wasmtime doesn't use something by default doesn't mean it's not useful!
sparker-arm commented on issue #3322:
@cfallin, would you be able to look at this now the QEMU changes have landed?
Last updated: Nov 22 2024 at 17:03 UTC