[PATCH v1] KVM: arm64: pkvm: Clear GICv3 LRs in the hypervisor
Marc Zyngier
maz at kernel.org
Wed Oct 21 05:22:28 PDT 2026
On Wed, 21 Oct 2026 12:00:00 +0100,
Vincent Donnefort <vdonnefort at google.com> wrote:
>
> The LR registers are architecturally UNKNOWN when the CPU boots or
> resumes. However, in protected mode, only the used ones are reset.
> During boot the HVC __vgic_v3_init_lrs() is never called because
> vgic_present is only set in init_subsystems(), after cpu_hyp_init() was
> called.
Why don't you fix this rather than making the init even more
different?
> Also, the PM notifier isn't registered for pKVM and the HVC
> becomes unavailable after the host is deprivileged.
Sanitising the LRs on PSCI_ON is probably the right thing to do, but I
don't understand why resetting the LRs is out of reach from the host,
given that the host is fully in charge of the interrupt injection, and
therefore controls the LRs.
Thanks,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list