[PATCH 13/16] KVM: arm64: nv: timers: Support hyp timer emulation

Colton Lewis coltonlewis at google.com
Fri Feb 24 12:08:15 PST 2023


I hope someone else looks at this one because I don't understand NV.

Marc Zyngier <maz at kernel.org> writes:

> +	struct arch_timer_context *ctx;
> +
> +	ctx = (vcpu_has_nv(vcpu) && is_hyp_ctxt(vcpu)) ? vcpu_hvtimer(vcpu)
> +						       : vcpu_vtimer(vcpu);

I don't think that ternary is the easiest to read and would prefer an if
statement.



More information about the linux-arm-kernel mailing list