Skip to content

KVM: arm64: Keep hyp and host headers separate where possible

Will Deacon kvmarm linux-arm-kernel 1 version Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: Add missing include of asm/cpufeature.h to asm/mmu.harch/arm64/include/asm/mmu.h+1 -01 reply
2/3KVM: arm64: Generate hyp_constants.h for the hostarch/arm64/kvm/.gitignore arch/arm64/kvm/Makefile arch/arm64/kvm/hyp/hyp-constants.c+28 -01 reply
3/3KVM: arm64: Move host EL1 code out of hyp/ directoryarch/arm64/include/asm/kvm_pkvm.h arch/arm64/kvm/Makefile arch/arm64/kvm/hyp/Makefile +5 more+80 -631 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchFuad Tabba
1/3T-b R-b
2/3T-b R-b
3/3T-b R-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: Keep hyp and host headers separate where possible

Hi folks,

This series tidies up the header file usage for the nvhe hyp object so that header files under arch/arm64/kvm/hyp/include are not included by host code running at EL1.

For definitions that are shared between the host and hypervisor, these are either moved to headers under arch/arm64/include/asm/ or are generated by kbuild along similar lines to asm-offsets.h. For now, this allows us to tidy up some of the pKVM reserved memory handling, but in future this will also allow the pKVM EL2 data structures to avoid polluting the host namespace.

Cheers,

Will

Cc Alexandru Elisei <[email protected]>
Cc James Morse <[email protected]>
Cc Quentin Perret <[email protected]>
Cc Suzuki K Poulose <[email protected]>
Cc Fuad Tabba <[email protected]>
Cc Marc Zyngier <[email protected]>

--->8

Will Deacon (3):
arm64: Add missing include of asm/cpufeature.h to asm/mmu.h
KVM: arm64: Generate hyp_constants.h for the host
KVM: arm64: Move host EL1 code out of hyp/ directory

 arch/arm64/include/asm/kvm_pkvm.h             | 71 +++++++++++++++++++
 arch/arm64/include/asm/mmu.h                  |  1 +
 arch/arm64/kvm/.gitignore                     |  2 +
 arch/arm64/kvm/Makefile                       | 18 ++++-
 arch/arm64/kvm/hyp/Makefile                   |  2 +-
 arch/arm64/kvm/hyp/hyp-constants.c            | 10 +++
 arch/arm64/kvm/hyp/include/nvhe/mm.h          | 57 ---------------
 arch/arm64/kvm/hyp/nvhe/mem_protect.c         |  1 +
 arch/arm64/kvm/hyp/nvhe/mm.c                  |  1 +
 arch/arm64/kvm/hyp/nvhe/setup.c               |  1 +
 arch/arm64/kvm/{hyp/reserved_mem.c => pkvm.c} |  8 +--
 11 files changed, 109 insertions(+), 63 deletions(-)
 create mode 100644 arch/arm64/include/asm/kvm_pkvm.h
 create mode 100644 arch/arm64/kvm/.gitignore
 create mode 100644 arch/arm64/kvm/hyp/hyp-constants.c
 rename arch/arm64/kvm/{hyp/reserved_mem.c => pkvm.c} (94%)
Signature · 6 lines
2.34.0.rc2.393.gf8c9666880-goog

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