Skip to content

Fixes for FWB

Quentin Perret kvmarm linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Introduce KVM_PGTABLE_S2_NOFWB Stage-2 flagarch/arm64/include/asm/kvm_pgtable.h arch/arm64/include/asm/pgtable-prot.h arch/arm64/kvm/hyp/pgtable.c+50 -224 replies
2/2KVM: arm64: Disable FWB in host stage-2arch/arm64/kvm/hyp/nvhe/mem_protect.c+2 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fixes for FWB

Hi folks,

This is an alternative solution to the KVM_PGTABLE_PROT_S2_NOFWB patch I shared earlier (and which is a bit of a hack).

With this series we basically force FWB off for the host stage-2, even when the CPUs support it. This is done by passing flags to the pgtable init function, and propagating it down where needed. It's a bit more intrusive, but cleaner conceptually.

Thoughts?

Thanks,
Quentin

Quentin Perret (2):
KVM: arm64: Introduce KVM_PGTABLE_S2_NOFWB Stage-2 flag
KVM: arm64: Disable FWB in host stage-2

 arch/arm64/include/asm/kvm_pgtable.h  | 19 +++++++++--
 arch/arm64/include/asm/pgtable-prot.h |  4 +--
 arch/arm64/kvm/hyp/nvhe/mem_protect.c |  6 ++--
 arch/arm64/kvm/hyp/pgtable.c          | 49 +++++++++++++++++----------
 4 files changed, 52 insertions(+), 26 deletions(-)
Signature · 6 lines
2.31.0.rc2.261.g7f71774620-goog

_______________________________________________
kvmarm mailing list
[email protected]
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm