Re: [PATCH 1/1] util/cacheflush: Make first DSB unconditional on aarch64

2025-03-12 Thread Richard Henderson
On 3/12/25 07:18, Peter Maydell wrote: On Mon, 10 Mar 2025 at 20:36, Joe Komlodi wrote: On ARM hosts with CTR_EL0.DIC and CTR_EL0.IDC set, this would only cause an ISB to be executed during cache maintenance, which could lead to QEMU executing TBs containing garbage instructions. This seems t

Re: [PATCH 1/1] util/cacheflush: Make first DSB unconditional on aarch64

2025-03-12 Thread Peter Maydell
On Mon, 10 Mar 2025 at 20:36, Joe Komlodi wrote: > > On ARM hosts with CTR_EL0.DIC and CTR_EL0.IDC set, this would only cause > an ISB to be executed during cache maintenance, which could lead to QEMU > executing TBs containing garbage instructions. > > This seems to be because the ISB finishes ex

[PATCH 1/1] util/cacheflush: Make first DSB unconditional on aarch64

2025-03-11 Thread Joe Komlodi
On ARM hosts with CTR_EL0.DIC and CTR_EL0.IDC set, this would only cause an ISB to be executed during cache maintenance, which could lead to QEMU executing TBs containing garbage instructions. This seems to be because the ISB finishes executing instructions and flushes the pipeline, but the ISB do