[PATCH v1 10/12] KVM: arm64: Calculate cptr_el2 traps on activating traps
Quentin Perret
qperret at google.com
Thu Nov 21 00:32:05 PST 2024
Hi Fuad,
On Wednesday 20 Nov 2024 at 10:52:52 (+0000), Fuad Tabba wrote:
> -static void pvm_init_traps_cptr(struct kvm_vcpu *vcpu)
> -{
> - struct kvm *kvm = vcpu->kvm;
> - u64 val = vcpu->arch.cptr_el2;
> -
> - if (!has_hvhe()) {
> - val |= CPTR_NVHE_EL2_RES1;
> - val &= ~(CPTR_NVHE_EL2_RES0);
> - }
To be on the safe side, should keep the RES1 stuff for nVHE?
Thanks,
Quentin
More information about the linux-arm-kernel
mailing list