From da20bb4bc5e6cc2028d61ba5dceaf9147348f617 Mon Sep 17 00:00:00 2001 From: Mark Rutland Date: Wed, 3 Jun 2026 12:06:15 +0100 Subject: KVM: arm64: pkvm: Save host FPMR in host cpu context Protected KVM stores most of the host's system register state in kvm_host_data::host_ctxt, which is an instance of struct kvm_cpu_context. As kvm_cpu_context::sys_regs[] has a slot for FPMR, we can store the host's FPMR there. Do so, and remove kvm_host_data::fpmr. Signed-off-by: Mark Rutland Reviewed-by: Vladimir Murzin Cc: Catalin Marinas Cc: Fuad Tabba Cc: James Morse Cc: Marc Zyngier Cc: Mark Brown Cc: Oliver Upton Cc: Will Deacon Signed-off-by: Will Deacon --- arch/arm64/include/asm/kvm_host.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'arch/arm64/include/asm/kvm_host.h') diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 851f6171751c..0595644d6a3a 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -778,9 +778,6 @@ struct kvm_host_data { */ struct cpu_sve_state *sve_state; - /* Used by pKVM only. */ - u64 fpmr; - /* Ownership of the FP regs */ enum { FP_STATE_FREE, -- cgit v1.2.3