Skip to content

RFC arm64: SVE guest support test hacks

Dave Martin kvmarm linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12guest: Add generated file guest/guest_init.c to .gitignoreguest/.gitignore+1 -00 replies
2/12update_headers: Sync kvm UAPI headers with linux v5.0-rc2arm/aarch32/include/asm/kvm.h arm/aarch64/include/asm/kvm.h include/linux/kvm.h +3 more+461 -140 replies
3/12Makefile: [HACK] Work around GCC 8 warnings :(Makefile+7 -20 replies
4/12Makefile: [HACK] Pass relevant flags when checking for libfdtMakefile+1 -10 replies
5/12arm64: Correct ARM64_CORE_REG() size encodings for all core registersarm/aarch64/kvm-cpu.c+15 -20 replies
6/12arm64: [HACK] Pull in kvm UAPI header updates from SVE development brancharm/aarch64/include/asm/kvm.h include/linux/kvm.h+15 -00 replies
7/12arm64: [HACK] Add option to show the kernel's KVM register ID listarm/aarch64/include/kvm/kvm-config-arch.h arm/include/arm-common/kvm-config-arch.h arm/kvm-cpu.c+53 -00 replies
8/12arm64: [HACK] Basic SVE supportarm/aarch64/include/kvm/kvm-config-arch.h arm/aarch64/include/kvm/kvm-cpu-arch.h arm/include/arm-common/kvm-config-arch.h+5 -10 replies
9/12arm64: [HACK] Show extra info about SVE with --show-reg-listarm/kvm-cpu.c+110 -10 replies
10/12arm64: [HACK] Allow configuration of the guest's set of SVE vector lengthsarm/aarch64/include/kvm/kvm-config-arch.h arm/kvm-cpu.c+85 -00 replies
11/12arm64: [HACK] FPSIMD/SVE register dumping for lkvm debugarm/aarch64/kvm-cpu.c+186 -00 replies
12/12arm64: [HACK] Check that out-of-range SVE register IDs can't be dumpedarm/aarch64/kvm-cpu.c+10 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 00/12] arm64: SVE guest support test hacks

This series, based on kvmtool master [1], contains development hacks to accompany the recently posted v4 SVE guest support series for the Linux kernel [2].

This is not proposed for upstreaming in its current form, but some things are probably close to being appropriate for upstream.

Comments and review welcome (but don't sweat the details too much).

[1]
git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git master
https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git/log/

Specifically, commit fdd26ecb4bc5 ("kvm-cpu: Pause vCPU in signal handler").

[2] [PATCH v4 00/25] KVM: arm64: SVE guest support
https://lists.cs.columbia.edu/pipermail/kvmarm/2019-January/034134.html
git://linux-arm.org/linux-dm.git sve-kvm/v4/head
http://linux-arm.org/git?p=linux-dm.git;a=shortlog;h=refs/heads/sve-kvm/v4/head

Dave Martin (12):
guest: Add generated file guest/guest_init.c to .gitignore
update_headers: Sync kvm UAPI headers with linux v5.0-rc2
Makefile: [HACK] Work around GCC 8 warnings :(
Makefile: [HACK] Pass relevant flags when checking for libfdt
arm64: Correct ARM64_CORE_REG() size encodings for all core registers
arm64: [HACK] Pull in kvm UAPI header updates from SVE development
branch
arm64: [HACK] Add option to show the kernel's KVM register ID list
arm64: [HACK] Basic SVE support
arm64: [HACK] Show extra info about SVE with --show-reg-list
arm64: [HACK] Allow configuration of the guest's set of SVE vector
lengths
arm64: [HACK] FPSIMD/SVE register dumping for lkvm debug
arm64: [HACK] Check that out-of-range SVE register IDs can't be dumped

 Makefile                                  |  11 +-
 arm/aarch32/include/asm/kvm.h             |  55 ++++++-
 arm/aarch64/include/asm/kvm.h             |  54 ++++++-
 arm/aarch64/include/kvm/kvm-config-arch.h |   9 ++
 arm/aarch64/include/kvm/kvm-cpu-arch.h    |   3 +-
 arm/aarch64/kvm-cpu.c                     | 209 ++++++++++++++++++++++++-
 arm/include/arm-common/kvm-config-arch.h  |   2 +
 arm/kvm-cpu.c                             | 239 ++++++++++++++++++++++++++++
 guest/.gitignore                          |   1 +
 include/linux/kvm.h                       | 250 +++++++++++++++++++++++++++++-
 mips/include/asm/kvm.h                    |  23 ++-
 powerpc/include/asm/kvm.h                 |  39 +++++
 x86/include/asm/kvm.h                     |  69 ++++++++-
 13 files changed, 944 insertions(+), 20 deletions(-)
 create mode 100644 guest/.gitignore
Signature · 1 line
2.1.4