[PATCH v5 2/2] KVM: arm64: Move FGT value configuration to vCPU state
Marc Zyngier
maz at kernel.org
Thu Jul 13 08:22:41 PDT 2023
On Thu, 13 Jul 2023 16:15:36 +0100,
Mark Brown <broonie at kernel.org> wrote:
>
> [1 <text/plain; us-ascii (7bit)>]
> On Thu, Jul 13, 2023 at 10:48:54AM +0100, Suzuki K Poulose wrote:
> > On 12/07/2023 13:50, Mark Brown wrote:
>
> > > + /* We currently assume the host configuration never changes */
> > > + vcpu->arch.hfgrtr_el2_host = read_sysreg_s(SYS_HFGRTR_EL2);
> > > + vcpu->arch.hfgwtr_el2_host = read_sysreg_s(SYS_HFGWTR_EL2);
>
> > Doesn't this crash an nVHE host ?
>
> This series is probably moot given Marc's nv series (or at least needs
> another rework) but could you expand on the issue you're seeing please?
You're reading EL2 registers from EL1. What could possibly go wrong?
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list