All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/8] KVM: arm64: Fixes for guest CPU feature trapping and enabling
@ 2025-11-04 12:58 Fuad Tabba
  2025-11-04 12:58 ` [PATCH v1 1/8] KVM: arm64: Route MOPS exceptions to EL2 when guest lacks support Fuad Tabba
                   ` (7 more replies)
  0 siblings, 8 replies; 21+ messages in thread
From: Fuad Tabba @ 2025-11-04 12:58 UTC (permalink / raw)
  To: kvmarm, linux-arm-kernel
  Cc: maz, oliver.upton, will, joey.gouly, suzuki.poulose, yuzenghui,
	catalin.marinas, vladimir.murzin, tabba

Hi,

This series contains several fixes for guest vCPU feature trapping and
enabling, correcting logic for both non-protected and protected guests.

It fixes inverted logic for MOPS exception routing and pKVM Trace Buffer
trapping, and add missing traps for features like FEAT_NMI. It also
ensures that supported features like FEAT_LS64 (LD/ST64B) are correctly
enabled for the guest and not trapped.

For pKVM, this series also ensures MTE is correctly detected and enabled
when it is on the allow-list.

Additionally, a simple refactoring of vcpu_set_hcrx() is included to
reduce indentation and improve readability.

Based on Linux 6.18-rc4.

Cheers,
/fuad

Fuad Tabba (8):
  KVM: arm64: Route MOPS exceptions to EL2 when guest lacks support
  KVM: arm64: Trap access to ALLINT if FEAT_NMI not supported by the
    guest
  KVM: arm64: Enable LS64 instructions when supported by guest
  KVM: arm64: Refactor vcpu_set_hcrx() to reduce indentation
  KVM: arm64: Fix Trace Buffer trap polarity for protected VMs
  KVM: arm64: Fix MTE flag initialization for protected VMs
  KVM: arm64: Prevent host from managing timer offsets for protected VMs
  KVM: arm64: Define FAR_MASK for faulting IPA offset

 arch/arm64/include/asm/kvm_arm.h         |  2 +
 arch/arm64/include/asm/kvm_emulate.h     | 48 +++++++++++++++---------
 arch/arm64/kvm/arch_timer.c              | 18 ++++++---
 arch/arm64/kvm/hyp/nvhe/pkvm.c           | 10 +++--
 arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c |  2 +-
 arch/arm64/kvm/inject_fault.c            |  2 +-
 arch/arm64/kvm/mmu.c                     |  4 +-
 arch/arm64/kvm/sys_regs.c                |  6 ++-
 8 files changed, 60 insertions(+), 32 deletions(-)


base-commit: 6146a0f1dfae5d37442a9ddcba012add260bceb0
-- 
2.51.2.997.g839fc31de9-goog


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

end of thread, other threads:[~2025-11-04 19:04 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-04 12:58 [PATCH v1 0/8] KVM: arm64: Fixes for guest CPU feature trapping and enabling Fuad Tabba
2025-11-04 12:58 ` [PATCH v1 1/8] KVM: arm64: Route MOPS exceptions to EL2 when guest lacks support Fuad Tabba
2025-11-04 13:44   ` Joey Gouly
2025-11-04 13:49     ` Fuad Tabba
2025-11-04 12:59 ` [PATCH v1 2/8] KVM: arm64: Trap access to ALLINT if FEAT_NMI not supported by the guest Fuad Tabba
2025-11-04 15:15   ` Marc Zyngier
2025-11-04 15:30     ` Fuad Tabba
2025-11-04 17:22       ` Marc Zyngier
2025-11-04 17:30         ` Fuad Tabba
2025-11-04 12:59 ` [PATCH v1 3/8] KVM: arm64: Enable LS64 instructions when supported by guest Fuad Tabba
2025-11-04 15:26   ` Marc Zyngier
2025-11-04 15:31     ` Fuad Tabba
2025-11-04 12:59 ` [PATCH v1 4/8] KVM: arm64: Refactor vcpu_set_hcrx() to reduce indentation Fuad Tabba
2025-11-04 12:59 ` [PATCH v1 5/8] KVM: arm64: Fix Trace Buffer trap polarity for protected VMs Fuad Tabba
2025-11-04 17:50   ` Suzuki K Poulose
2025-11-04 17:56     ` Fuad Tabba
2025-11-04 18:03       ` Suzuki K Poulose
2025-11-04 19:04         ` Fuad Tabba
2025-11-04 12:59 ` [PATCH v1 6/8] KVM: arm64: Fix MTE flag initialization " Fuad Tabba
2025-11-04 12:59 ` [PATCH v1 7/8] KVM: arm64: Prevent host from managing timer offsets " Fuad Tabba
2025-11-04 12:59 ` [PATCH v1 8/8] KVM: arm64: Define FAR_MASK for faulting IPA offset Fuad Tabba

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.