All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: Support for per-guest fine grained traps configuration
@ 2023-03-06 16:08 ` Mark Brown
  0 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2023-03-06 16:08 UTC (permalink / raw)
  To: Marc Zyngier, Oliver Upton, James Morse, Suzuki K Poulose,
	Zenghui Yu, Catalin Marinas, Will Deacon
  Cc: Joey Gouly, linux-arm-kernel, kvmarm, Mark Brown

A number of upcoming features will require per guest configuration of
the fine grained traps enabled in the guest.  At present the only
management we do is for SME where we don't yet have guest support so we
unconditionally enable the traps while guests are running but this will
change going forward and at present the code isn't particularly
scalable.  This series aims to make it easier to configure which traps
are enabled for the guest by making the value set for the guest into
configuration in the vCPU data which we can set up based on the chosen
features rather than requiring conditional code in the trap enable and
disable paths.

This will have no benefit until one of the features that requires
configuration of these traps is merged but since there's a number of
such features it seems useful to decide on an approach to handling traps
for them which can be shared.

---
Mark Brown (2):
      arm64: Add feature detection for fine grained traps
      KVM: arm64: Move FGT value configuration to vCPU state

 arch/arm64/include/asm/kvm_emulate.h    | 12 ++++++++++++
 arch/arm64/include/asm/kvm_host.h       |  6 ++++++
 arch/arm64/kernel/cpufeature.c          | 11 +++++++++++
 arch/arm64/kvm/arm.c                    |  1 +
 arch/arm64/kvm/hyp/include/hyp/switch.h | 31 +++++++++++++++----------------
 arch/arm64/tools/cpucaps                |  1 +
 6 files changed, 46 insertions(+), 16 deletions(-)
---
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
change-id: 20230301-kvm-arm64-fgt-e5dd12746f67

Best regards,
-- 
Mark Brown <broonie@kernel.org>


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-03-17 18:04 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06 16:08 [PATCH 0/2] KVM: arm64: Support for per-guest fine grained traps configuration Mark Brown
2023-03-06 16:08 ` Mark Brown
2023-03-06 16:08 ` [PATCH 1/2] arm64: Add feature detection for fine grained traps Mark Brown
2023-03-06 16:08   ` Mark Brown
2023-03-15 15:34   ` Catalin Marinas
2023-03-15 15:34     ` Catalin Marinas
2023-03-06 16:08 ` [PATCH 2/2] KVM: arm64: Move FGT value configuration to vCPU state Mark Brown
2023-03-06 16:08   ` Mark Brown
2023-03-17  9:02   ` Marc Zyngier
2023-03-17  9:02     ` Marc Zyngier
2023-03-17 13:49     ` Mark Brown
2023-03-17 13:49       ` Mark Brown
2023-03-17 14:06       ` Mark Brown
2023-03-17 14:06         ` Mark Brown
2023-03-17 16:48       ` Marc Zyngier
2023-03-17 16:48         ` Marc Zyngier
2023-03-17 18:02         ` Mark Brown
2023-03-17 18:02           ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.