Thread (30 messages) 30 messages, 4 authors, 2021-10-06

Re: [PATCH v6 03/12] KVM: arm64: Move early handlers to per-EC handlers

flat view

From: Marc Zyngier <maz@kernel.org>
Date: 2021-09-30 16:07:48
Also in: kvmarm, linux-arm-kernel

On 2021-09-30 14:35, Will Deacon wrote:
On Wed, Sep 22, 2021 at 01:46:55PM +0100, Fuad Tabba wrote:
quoted
From: Marc Zyngier <maz@kernel.org>
quoted
+static bool kvm_hyp_handle_cp15(struct kvm_vcpu *vcpu, u64 *exit_code)
+{
+	if (static_branch_unlikely(&vgic_v3_cpuif_trap) &&
+	    __vgic_v3_perform_cpuif_access(vcpu) == 1)
+		return true;
I think you're now calling this for the 64-bit CP15 access path, which I
don't think is correct. Maybe have separate handlers for 32-bit v4 64-bit
accesses?
Good point. The saving grace is that there is no 32bit-capable CPU that
requires GICv3 trapping, nor any 64bit cp15 register in the GICv3
architecture apart form the SGI registers, which are always handled at EL1.
So this code is largely academic!

Not providing a handler is the way to go for CP15-64.

Thanks,

        M.
-- 
Jazz is not dead. It just smells funny...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help