Skip to content

KVM: arm/arm64: Various rework in preparation of nested virt support

Christoffer Dall kvm kvmarm linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14arm/arm64: KVM: Introduce kvm_call_hyp_ret()arch/arm/include/asm/kvm_host.h arch/arm64/include/asm/kvm_host.h arch/arm64/kvm/debug.c +2 more+8 -40 replies
2/14arm64: KVM: Allow for direct call of HYP functions when using VHEarch/arm64/include/asm/kvm_host.h+30 -20 replies
3/14arm64: KVM: Drop VHE-specific HYP call stubarch/arm64/kvm/hyp.S arch/arm64/kvm/hyp/hyp-entry.S+0 -150 replies
4/14ARM: KVM: Teach some form of type-safety to kvm_call_hyparch/arm/include/asm/kvm_host.h arch/arm/kvm/hyp/hyp-entry.S arch/arm/kvm/interrupts.S+31 -60 replies
5/14arm/arm64: KVM: Statically configure the host's view of MPIDRarch/arm/include/asm/kvm_host.h arch/arm/kvm/hyp/cp15-sr.c arch/arm64/include/asm/kvm_host.h +2 more+17 -20 replies
6/14KVM: arm/arm64: Factor out VMID into struct kvm_vmidarch/arm/include/asm/kvm_host.h arch/arm/include/asm/kvm_mmu.h arch/arm/kvm/hyp/switch.c +6 more+63 -498 replies
7/14KVM: arm/arm64: Simplify bg_timer programminginclude/kvm/arm_arch_timer.h virt/kvm/arm/arch_timer.c virt/kvm/arm/arm.c+14 -260 replies
8/14KVM: arm64: Fix ICH_ELRSR_EL2 sysreg namingarch/arm/include/asm/arch_gicv3.h arch/arm64/include/asm/sysreg.h virt/kvm/arm/hyp/vgic-v3-sr.c+4 -40 replies
9/14KVM: arm64: Reuse sys_reg() macro when searching the trap tablearch/arm64/kvm/sys_regs.c+6 -131 reply
10/14KVM: arm/arm64: consolidate arch timer trap handlersarch/arm/kvm/coproc.c arch/arm64/include/asm/sysreg.h arch/arm64/kvm/sys_regs.c +2 more+196 -632 replies
11/14KVM: arm/arm64: timer: Rework data structures for multiple timersinclude/kvm/arm_arch_timer.h virt/kvm/arm/arch_timer.c+54 -482 replies
12/14KVM: arm/arm64: arch_timer: Assign the phys timer on VHE systemsarch/arm/include/asm/kvm_hyp.h include/kvm/arm_arch_timer.h virt/kvm/arm/arch_timer.c+171 -455 replies
13/14KVM: arm/arm64: Rework the timer code to use a timer_mapinclude/kvm/arm_arch_timer.h virt/kvm/arm/arch_timer.c virt/kvm/arm/trace.h+276 -1460 replies
14/14KVM: arm/arm64: Move kvm_is_write_fault to header filearch/arm/include/asm/kvm_emulate.h arch/arm64/include/asm/kvm_emulate.h virt/kvm/arm/mmu.c+16 -80 replies

Reviews trailers per patch

9 of 14 patches have a Reviewed-by or Acked-by.

PatchChristoffer DallMarc ZyngierJulien Thierry
1/14A-b
2/14A-b
3/14A-b
4/14A-b
5/14A-b
6/14R-b R-b
7/14
8/14
9/14A-b
10/14
11/14A-b
12/14
13/14
14/14A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/14] KVM: arm/arm64: Various rework in preparation of nested virt support

This series contains a somewhat random set of reworks and improvements to the KVM/Arm code in preparation for nested virtualization support.

We plan to merge these as early as v5.1.

The series relies on an additional patch which exposes the physical EL1 timer's IRQ number to KVM:
"clocksource/arm_arch_timer: Store physical timer IRQ number for KVM on VHE"
https://www.mail-archive.com/[email protected]/msg1908965.html

Andre Przywara (1):
KVM: arm/arm64: consolidate arch timer trap handlers

Christoffer Dall (6):
KVM: arm/arm64: Factor out VMID into struct kvm_vmid
KVM: arm/arm64: Simplify bg_timer programming
KVM: arm/arm64: timer: Rework data structures for multiple timers
KVM: arm/arm64: arch_timer: Assign the phys timer on VHE systems
KVM: arm/arm64: Rework the timer code to use a timer_map
KVM: arm/arm64: Move kvm_is_write_fault to header file

Marc Zyngier (7):
arm/arm64: KVM: Introduce kvm_call_hyp_ret()
arm64: KVM: Allow for direct call of HYP functions when using VHE
arm64: KVM: Drop VHE-specific HYP call stub
ARM: KVM: Teach some form of type-safety to kvm_call_hyp arm/arm64: KVM: Statically configure the host's view of MPIDR
KVM: arm64: Fix ICH_ELRSR_EL2 sysreg naming
KVM: arm64: Reuse sys_reg() macro when searching the trap table

 arch/arm/include/asm/arch_gicv3.h    |   4 +-
 arch/arm/include/asm/kvm_emulate.h   |   8 +
 arch/arm/include/asm/kvm_host.h      |  53 ++-
 arch/arm/include/asm/kvm_hyp.h       |   4 +
 arch/arm/include/asm/kvm_mmu.h       |  11 +
 arch/arm/kvm/coproc.c                |  23 +-
 arch/arm/kvm/hyp/cp15-sr.c           |   1 -
 arch/arm/kvm/hyp/hyp-entry.S         |   2 +-
 arch/arm/kvm/hyp/switch.c            |   2 +-
 arch/arm/kvm/hyp/tlb.c               |   4 +-
 arch/arm/kvm/interrupts.S            |   4 +-
 arch/arm64/include/asm/kvm_emulate.h |   8 +
 arch/arm64/include/asm/kvm_host.h    |  48 ++-
 arch/arm64/include/asm/kvm_hyp.h     |   3 +-
 arch/arm64/include/asm/kvm_mmu.h     |  11 +
 arch/arm64/include/asm/sysreg.h      |   6 +-
 arch/arm64/kvm/debug.c               |   2 +-
 arch/arm64/kvm/hyp.S                 |   3 -
 arch/arm64/kvm/hyp/hyp-entry.S       |  12 -
 arch/arm64/kvm/hyp/sysreg-sr.c       |   1 -
 arch/arm64/kvm/sys_regs.c            |  99 +++--
 include/kvm/arm_arch_timer.h         |  68 +++-
 virt/kvm/arm/arch_timer.c            | 583 +++++++++++++++++++--------
 virt/kvm/arm/arm.c                   |  62 +--
 virt/kvm/arm/hyp/vgic-v3-sr.c        |   2 +-
 virt/kvm/arm/mmu.c                   |  10 +-
 virt/kvm/arm/trace.h                 | 105 +++++
 virt/kvm/arm/vgic/vgic-v3.c          |   4 +-
 28 files changed, 799 insertions(+), 344 deletions(-)
Signature · 1 line
2.18.0