Last time I checked QEMU lacked support for >= z10 processors. Thus one cannot run SLE12 and newer in a virtual machine on non-s390x host. I'd like to improve the situation during Hackweeks.

Looking for hackers with the skills:

s390 qemu

This project is part of:

Hack Week 14 Hack Week 15 Hack Week 16

Activity

  • about 7 years ago: e_bischoff left this project.
  • about 7 years ago: ldevulder liked this project.
  • about 7 years ago: mkubecek liked this project.
  • over 7 years ago: michal-m liked this project.
  • over 7 years ago: michal-m disliked this project.
  • over 7 years ago: e_bischoff added keyword "s390" to this project.
  • over 7 years ago: e_bischoff added keyword "qemu" to this project.
  • over 7 years ago: sparschauer liked this project.
  • almost 8 years ago: michal-m joined this project.
  • almost 8 years ago: e_bischoff joined this project.
  • almost 8 years ago: e_bischoff liked this project.
  • over 8 years ago: michal-m liked this project.
  • over 8 years ago: adamm liked this project.
  • over 8 years ago: dsterba liked this project.
  • over 8 years ago: mbenes started this project.
  • over 8 years ago: vimacs liked this project.
  • over 8 years ago: algraf liked this project.
  • over 8 years ago: a_faerber liked this project.
  • over 8 years ago: mbenes originated this project.

  • Comments

    • e_bischoff
      over 7 years ago by e_bischoff | Reply

      I have submitted upstream a first patch to support the s/390 instructions LPD and LPDG (LOAD PAIR DISJOINT).

      Unfortunately, these instructions are not needed for SLE12 to boot, but it was a way for me to learn how qemu works and to do a first contribution.

    • michal-m
      over 7 years ago by michal-m | Reply

      I fixed the emulation of the STFL (STORE FACILITY LIST) instruction and implemented STFLE. So we now indicate the proper facility bits to the kernel. The next problem is that the kernel is trying to use the advertised facilities and crashes :-). Miroslav implemented the LPP (LOAD PROGRAM PARAMETER) instruction, which means that the kernel lives a bit longer. I'm now studying the s390x memory model and the qemu mmu code to implement the IDTE (INVALIDATE DAT TABLE ENTRY) instruction, which is what is needed to boot the kernel under z990 emulation. We all learned a lot about the architecture and about qemu internals, but the stated goal of booting the SLE12 kernel unmodified (means z196 emulation) is still a distant one.

    • mbenes
      almost 7 years ago by mbenes | Reply

      A lot has changed in qemu and upstream kernel since the last hackweek in Feb 2017. Lots of instructions were implemented in qemu and couple of facilities are supported. Maximum supported cpu model was changed from z900 to a stripped down z12 (this should get to qemu 2.12). At the same time, kernel's arch support was improved a lot. ALS (architecture level set) was rewritten from assembly to C code. Much more importantly a set of facilities required to run the kernel was reduced significantly. All this means that it is straightforward to run s390x upstream kernel on non-s390x host. SLE15 4.12 kernel contains all those important changes and thus we can run complete s390x SLE15 installation on non-s390x host.

      I deem the hackweek project done. We can of course improve qemu implementation to support also SLE12 in the future, but I think it is not necessary.

    Similar Projects

    terraform-provider-feilong by e_bischoff

    Project Description

    People need to test o...