Skip to content

target/s390x: implement idte and improve ipte

David Hildenbrand qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Allow to enable the DAT-enhancement facility.
- Fix wrong register in idte.
- Simply set m4 to zero in case local-tlb-clearing is not enabled.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3target/s390x: Indicate and check for local tlb clearingtarget/s390x/cpu_models.c target/s390x/mem_helper.c target/s390x/translate.c+6 -31 reply
2/3target/s390x: Improve heuristic for iptetarget/s390x/mem_helper.c+16 -90 replies
3/3target/s390x: Implement idte instructiontarget/s390x/cpu_models.c target/s390x/helper.h target/s390x/insn-data.def +2 more+70 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchRichard Henderson
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] target/s390x: implement idte and improve ipte

By adding idte, we are now able to expose the DAT-enhancement facility to our guest. Also, properly simulate and expose the local-tlb-clearing facility.

To improve the TLB flushing, we will have to remember each used table (or at least a hash!) for each tlb entry, just like real HW does.

This allows me to start an upstream kernel (having also the mvcos patch applied) compiled for z9 using:

qemu-system-s390x ... -cpu qemu,mvcos=on,stfle=on,ldisp=on,ldisphp=on,\
                           eimm=on,stckf=on,csst=on,csst2=on,ginste=on,\
                           exrl=on,dateh=on,ltlbc=on

Linux will detect the DAT-enhancement facility and use idte+cspg.

v1 -> v2:
- Allow to enable the DAT-enhancement facility.
- Fix wrong register in idte.
- Simply set m4 to zero in case local-tlb-clearing is not enabled.

David Hildenbrand (3):
target/s390x: Indicate and check for local tlb clearing target/s390x: Improve heuristic for ipte target/s390x: Implement idte instruction

 target/s390x/cpu_models.c  |  2 ++
 target/s390x/helper.h      |  1 +
 target/s390x/insn-data.def |  2 ++
 target/s390x/mem_helper.c  | 78 +++++++++++++++++++++++++++++++++++++++-------
 target/s390x/translate.c   | 21 ++++++++++++-
 5 files changed, 92 insertions(+), 12 deletions(-)
Signature · 1 line
2.9.4