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

Mark Brown broonie at kernel.org
Tue Mar 28 08:44:46 PDT 2023


On Tue, Mar 28, 2023 at 04:27:45PM +0100, Will Deacon wrote:
> On Thu, Mar 23, 2023 at 03:48:36PM +0000, Mark Brown wrote:

> > +	if (cpus_have_final_cap(ARM64_HAS_FGT)) {
> > +		host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt;
> > +
> > +		write_sysreg_s(__vcpu_sys_reg(vcpu, HFGRTR_EL2),
> > +			       SYS_HFGRTR_EL2);
> > +		write_sysreg_s(__vcpu_sys_reg(vcpu, HFGWTR_EL2),
> > +			       SYS_HFGWTR_EL2);

> I don't understand this hunk. Where is `host_ctxt` being used?

That's bitrot from a previous version, should be removed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230328/a00e1d89/attachment.sig>


More information about the linux-arm-kernel mailing list