Skip to content

s390x/mmu: Implement more facilities

David Hildenbrand qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5s390x/mmu: Add EDAT2 translation supporttarget/s390x/mmu_helper.c+9 -05 replies
2/5s390x/mmu: Implement ESOP-2 and access-exception-fetch/store-indication facilitytarget/s390x/mmu_helper.c+10 -22 replies
3/5s390x/mmu: Implement Instruction-Execution-Protection Facilitytarget/s390x/cpu.h target/s390x/helper.c target/s390x/mmu_helper.c+27 -11 reply
4/5s390x/cpumodel: Prepare for changes of QEMU modelhw/s390x/s390-virtio-ccw.c target/s390x/gen-features.c+7 -10 replies
5/5s390x/cpumodel: Add new TCG features to QEMU cpu modeltarget/s390x/gen-features.c+5 -01 reply

Reviews trailers per patch

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

PatchThomas HuthCornelia Huck
1/5R-b R-b
2/5A-b
3/5R-b
4/5R-b R-b
5/5A-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 v1 0/5] s390x/mmu: Implement more facilities

This is the follow up of:

    [PATCH-for-4.2 v1 0/9] s390x: MMU changes and extensions
Without the general MMU rework. It's based on:
    [PATCH v2 0/7] s390x/mmu: DAT translation rewrite

This series adds adds EDAT2 MMU support, and implements/indicates related facilities (ESOP-1, ESOP-2, IEP, ...) for TCG. The QEMU CPU model is updated.

IEP under QEMU TCG seems to work just fine, when eabling it via the "max" CPU model - via kvm unit tests:

    t460s: ~/git/kvm-unit-tests master $ ./s390x-run s390x/iep.elf -cpu max
    [...]
    PASS: iep: iep protection: Program interrupt: expected(4) == received(4)
    SUMMARY: 1 tests

    EXIT: STATUS=1

Changes since "[PATCH-for-4.2 v1 0/9] s390x: MMU changes and extensions":
- "s390x/mmu: Add EDAT2 translation support"
-- Fix vaddr offset within 2GB page
- "s390x/mmu: Implement ESOP-2 and ..."
-- Squashed two patches as requested.
-- Also set ilen to "2" in case of MMU_INST_FETCH on mmu_translate_real
- "s390x/mmu: Implement Instruction-Execution-Protection Facility" -- Make sure s390_cpu_get_phys_page_debug() doesn't choke on IEP
- "s390x/cpumodel: Add new TCG features to QEMU cpu model"
-- Add comment "features introduced after the z13"

Cc Ilya Leoshkevich <[email protected]>

David Hildenbrand (5):
s390x/mmu: Add EDAT2 translation support
s390x/mmu: Implement ESOP-2 and
access-exception-fetch/store-indication facility
s390x/mmu: Implement Instruction-Execution-Protection Facility s390x/cpumodel: Prepare for changes of QEMU model s390x/cpumodel: Add new TCG features to QEMU cpu model

 hw/s390x/s390-virtio-ccw.c  |  2 ++
 target/s390x/cpu.h          |  1 +
 target/s390x/gen-features.c | 11 +++++++++-
 target/s390x/helper.c       |  6 +++++-
 target/s390x/mmu_helper.c   | 42 +++++++++++++++++++++++++++++++++++--
 5 files changed, 58 insertions(+), 4 deletions(-)
Signature · 1 line
2.21.0