Skip to content

KVM selftests for s390x

Thomas Huth kvm linux-kselftest linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 22 repliesIn review

Changes in v1 from the cover letter

- Rebase, needed to add the first patch for vcpu_nested_state_get/set
- Added patch to introduce VM_MODE_DEFAULT macro
- Improved/cleaned up the code in processor.c
- Added patch to fix KVM_CAP_MAX_VCPU_ID on s390x
- Added patch to enable the kvm_create_max_vcpus on s390x and aarch64

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9KVM: selftests: Wrap vcpu_nested_state_get/set functions with x86 guardtools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/lib/kvm_util.c+4 -00 replies
2/9KVM: selftests: Guard struct kvm_vcpu_events with __KVM_HAVE_VCPU_EVENTStools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/lib/kvm_util.c+4 -01 reply
3/9kvm: selftests: aarch64: fix default vm modetools/testing/selftests/kvm/lib/aarch64/processor.c+1 -11 reply
4/9KVM: selftests: Introduce a VM_MODE_DEFAULT macro for the default bitstools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/lib/aarch64/processor.c tools/testing/selftests/kvm/lib/x86_64/processor.c+8 -21 reply
5/9KVM: selftests: Align memory region addresses to 1M on s390xtools/testing/selftests/kvm/lib/kvm_util.c+16 -53 replies
6/9KVM: selftests: Add processor code for s390xMAINTAINERS tools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/include/s390x/processor.h +1 more+310 -00 replies
7/9KVM: selftests: Add the sync_regs test for s390xMAINTAINERS tools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/s390x/sync_regs_test.c+154 -00 replies
8/9KVM: s390: Do not report unusabled IDs via KVM_CAP_MAX_VCPU_IDarch/mips/kvm/mips.c arch/powerpc/kvm/powerpc.c arch/s390/kvm/kvm-s390.c +3 more+13 -26 replies
9/9KVM: selftests: Move kvm_create_max_vcpus test to generic codetools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/kvm_create_max_vcpus.c+5 -22 replies

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndrew JonesDavid HildenbrandCornelia HuckThomas Huth
SeriesR-b R-b
1/9R-b
2/9R-b R-b
3/9
4/9R-b
5/9
6/9
7/9
8/9R-b R-b R-b
9/9R-b R-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 4 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/9] KVM selftests for s390x

This patch series enables the KVM selftests for s390x. As a first test, the sync_regs from x86 has been adapted to s390x, and after a fix for KVM_CAP_MAX_VCPU_ID on s390x, the kvm_create_max_vcpus is now enabled here, too.

Please note that the ucall() interface is not used yet - since s390x neither has PIO nor MMIO, this needs some more work first before it becomes usable (we likely should use a DIAG hypercall here, which is what the sync_reg test is currently using, too... I started working on that topic, but did not finish that work yet, so I decided to not include it yet).

RFC -> v1:
- Rebase, needed to add the first patch for vcpu_nested_state_get/set
- Added patch to introduce VM_MODE_DEFAULT macro
- Improved/cleaned up the code in processor.c
- Added patch to fix KVM_CAP_MAX_VCPU_ID on s390x
- Added patch to enable the kvm_create_max_vcpus on s390x and aarch64

Andrew Jones (1):
kvm: selftests: aarch64: fix default vm mode

Thomas Huth (8):
KVM: selftests: Wrap vcpu_nested_state_get/set functions with x86
guard
KVM: selftests: Guard struct kvm_vcpu_events with
__KVM_HAVE_VCPU_EVENTS
KVM: selftests: Introduce a VM_MODE_DEFAULT macro for the default bits
KVM: selftests: Align memory region addresses to 1M on s390x
KVM: selftests: Add processor code for s390x
KVM: selftests: Add the sync_regs test for s390x
KVM: s390: Do not report unusabled IDs via KVM_CAP_MAX_VCPU_ID
KVM: selftests: Move kvm_create_max_vcpus test to generic code

 MAINTAINERS                                   |   2 +
 arch/mips/kvm/mips.c                          |   3 +
 arch/powerpc/kvm/powerpc.c                    |   3 +
 arch/s390/kvm/kvm-s390.c                      |   1 +
 arch/x86/kvm/x86.c                            |   3 +
 tools/testing/selftests/kvm/Makefile          |   7 +-
 .../testing/selftests/kvm/include/kvm_util.h  |  10 +
 .../selftests/kvm/include/s390x/processor.h   |  22 ++
 .../kvm/{x86_64 => }/kvm_create_max_vcpus.c   |   3 +-
 .../selftests/kvm/lib/aarch64/processor.c     |   2 +-
 tools/testing/selftests/kvm/lib/kvm_util.c    |  25 +-
 .../selftests/kvm/lib/s390x/processor.c       | 286 ++++++++++++++++++
 .../selftests/kvm/lib/x86_64/processor.c      |   2 +-
 .../selftests/kvm/s390x/sync_regs_test.c      | 151 +++++++++
 virt/kvm/arm/arm.c                            |   3 +
 virt/kvm/kvm_main.c                           |   2 -
 16 files changed, 514 insertions(+), 11 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/include/s390x/processor.h
 rename tools/testing/selftests/kvm/{x86_64 => }/kvm_create_max_vcpus.c (93%)
 create mode 100644 tools/testing/selftests/kvm/lib/s390x/processor.c
 create mode 100644 tools/testing/selftests/kvm/s390x/sync_regs_test.c
Signature · 1 line
2.21.0