Re: [PATCH v2 1/2] arm: cpu: Add optional CMOs by VA

2023-03-07 Thread Tom Rini
On Thu, Feb 09, 2023 at 04:54:27AM +0800, Ying-Chun Liu (PaulLiu) wrote: > From: Marc Zyngier > > Exposing set/way cache maintenance to a virtual machine is unsafe, not > least because the instructions are not permission-checked but also > because they are not broadcast between CPUs. Consequentl

[PATCH v2 1/2] arm: cpu: Add optional CMOs by VA

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
From: Marc Zyngier Exposing set/way cache maintenance to a virtual machine is unsafe, not least because the instructions are not permission-checked but also because they are not broadcast between CPUs. Consequently, KVM traps and emulates such maintenance in the host kernel using by-VA operations