]> asedeno.scripts.mit.edu Git - linux.git/commit
arm64: KVM: Handle Set/Way CMOs as NOPs if FWB is present
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 17 May 2018 10:05:08 +0000 (11:05 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 9 Jul 2018 10:37:41 +0000 (11:37 +0100)
commit09605e94c2cbb67c6472c07e1c06a7a0e7271f83
tree07619151aabc42a82224d7ef09b48184745edb12
parente48d53a91f6e90873e21a5ca5e8c0d7a9f8936a4
arm64: KVM: Handle Set/Way CMOs as NOPs if FWB is present

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
(the guest is forced to use cacheable memory, no matter what it says,
and the whole system is garanteed to be cache coherent), 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.

Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/sys_regs.c