needs s390x support
Bug #1526113 reported by
Michael Hudson-Doyle
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CPU-Checker |
New
|
Undecided
|
Unassigned | ||
cpu-checker (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
cpu-checker / kvm-ok is not available on s390x. I'm not sure what it should do, otherwise I'd attach a patch :-)
To post a comment you must log in.
Here's a patch to add s390x support to cpu-checker. Logically, it does the same as POWER and just assumes that the hardware is always virt capable. My understanding is that zSeries supports nested virtualization (SIE instruction supports 2 layers, then the OS emulates SIE after that).
I also did some cleanup:
- replaced a series of if/elif/elif/elif with a case statement to reduce code duplication
- I replaced the "POWER" virt type with one called "generic" that can be shared among
platforms that are always assumed to be virt-capable
- I got rid of the comment about "HYP mode" in power, as "HYP mode" is an ARM construct.