[PATCH v5 2/2] KVM: arm64: Move FGT value configuration to vCPU state

Suzuki K Poulose suzuki.poulose at arm.com
Thu Jul 13 08:22:15 PDT 2023


On 13/07/2023 16:15, Mark Brown wrote:
> 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?

I haven't tried it. But we are reading a EL2 register and this could be
executed from EL1 in nVHE/protected mode and could crash the host ?

Suzuki



More information about the linux-arm-kernel mailing list