[PATCH v2 2/6] arm64: KVM: Handle Set/Way CMOs as NOPs if FWB is present
From: Marc Zyngier <hidden>
Date: 2018-05-31 13:00:11
Also in:
kvm, kvmarm
From: Marc Zyngier <hidden>
Date: 2018-05-31 13:00:11
Also in:
kvm, kvmarm
On 31/05/18 12:51, Mark Rutland wrote:
On Wed, May 30, 2018 at 01:47:02PM +0100, Marc Zyngier wrote:quoted
Set/Way handling is one of the ugliest corners of KVM. We shouldn't have to handle that, but better safe than sorry. Thankfully, FWB fixes this for us by not requiering any maintenance whatsoever, which means we don't have to emulate S/W CMOs, and don't have to track VM ops either. We still have to trap S/W though, if only to prevent the guest from doing something bad.S/W ops *also* do I-cache maintenance, so we'd still need to emulate that. Though it looks like we're missing that today...
This doesn't look right: CSSELR_EL1 does indeed have an InD bit, but that's only for the purpose of reading CSSIDR_EL1. DC CSW and co directly take a level *without* the InD bit, and seem to be limited to "data and unified cache". Am I missing something? Thanks, M. -- Jazz is not dead. It just smells funny...