[PATCH 5/8] arm64: KVM: Disable virtual timer even if the guest is not using it

Paolo Bonzini pbonzini at redhat.com
Thu Sep 17 08:31:02 PDT 2015



On 17/09/2015 17:28, Marc Zyngier wrote:
> > diff --git a/arch/arm/kvm/interrupts_head.S b/arch/arm/kvm/interrupts_head.S
> > index 702740d37465..93e322b4d242 100644
> > --- a/arch/arm/kvm/interrupts_head.S
> > +++ b/arch/arm/kvm/interrupts_head.S
> > @@ -514,6 +514,7 @@ ARM_BE8(rev	r6, r6  )
> >  	beq	1f
> >  
> >  	mrc	p15, 0, r2, c14, c3, 1	@ CNTV_CTL
> > +	and	r2, r2, #3
> 
> I don't think we need this. Exposing the ISTATUS bit to the kernel (or
> even userspace) is not really a problem (that's actually an interesting
> piece of information), and restoring it is not possible since it is
> read-only.
> 
> We should drop the equivalent 'and' from the arm64 version.

Ok.  I'll resend the thing as a proper patch.

Paolo



More information about the linux-arm-kernel mailing list