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.

** Patch added: "cpu-checker-s390x.patch"
   
https://bugs.launchpad.net/cpu-checker/+bug/1526113/+attachment/4534832/+files/cpu-checker-s390x.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1526113

Title:
  needs s390x support

To manage notifications about this bug go to:
https://bugs.launchpad.net/cpu-checker/+bug/1526113/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to