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.
This project is part of:
Hack Week 14 Hack Week 15 Hack Week 16
Activity
Comments
-
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.
-
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.
-
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
This project is one of its kind!