Skip to content

KVM: arm64: Ask the compiler to __always_inline functions used by KVM at HYP

James Morse kvmarm linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Ask the compiler to __always_inline functions used at HYParch/arm64/include/asm/arch_gicv3.h arch/arm64/include/asm/cpufeature.h arch/arm64/include/asm/kvm_emulate.h +2 more+29 -280 replies
2/3KVM: arm64: define our own swab32() to avoid a uapi static inlinearch/arm64/include/asm/kvm_hyp.h arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c+9 -20 replies
3/3arm64: Ask the compiler to __always_inline functions used by KVM at HYParch/arm64/include/asm/cache.h arch/arm64/include/asm/cacheflush.h arch/arm64/include/asm/cpufeature.h +1 more+8 -82 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc ZyngierWill Deacon
SeriesA-b
1/3
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] KVM: arm64: Ask the compiler to __always_inline functions used by KVM at HYP

Hello!

It turns out KVM relies on the inline hint being honoured by the compiler in quite a few more places than expected. Something about the Shadow Call Stack support[0] causes the compiler to avoid inline-ing and to place these functions outside the __hyp_text. This ruins KVM's day.

Add the simon-says __always_inline annotation to all the static inlines that KVM calls from HYP code.

This series based on v5.6-rc2.

[0] https://lore.kernel.org/linux-arm-kernel/[email protected]/

Thanks,

James Morse (3):
KVM: arm64: Ask the compiler to __always_inline functions used at HYP
KVM: arm64: define our own swab32() to avoid a uapi static inline
arm64: Ask the compiler to __always_inline functions used by KVM at
HYP

 arch/arm64/include/asm/arch_gicv3.h      |  2 +-
 arch/arm64/include/asm/cache.h           |  2 +-
 arch/arm64/include/asm/cacheflush.h      |  2 +-
 arch/arm64/include/asm/cpufeature.h      | 10 ++---
 arch/arm64/include/asm/io.h              |  4 +-
 arch/arm64/include/asm/kvm_emulate.h     | 48 ++++++++++++------------
 arch/arm64/include/asm/kvm_hyp.h         |  7 ++++
 arch/arm64/include/asm/kvm_mmu.h         |  3 +-
 arch/arm64/include/asm/virt.h            |  2 +-
 arch/arm64/kvm/hyp/vgic-v2-cpuif-proxy.c |  4 +-
 10 files changed, 46 insertions(+), 38 deletions(-)
Signature · 6 lines
2.24.1

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