openmainframeproject / feilong

Feilong is a open source z/VM cloud connector project under the Open Mainframe Project umbrella that will accelerate the z/VM adoption, extending its ecosystem and its user experience. It provides a set of APIs to operate z/VM including guest, image, network, volume etc.
https://www.openmainframeproject.org/projects/feilong
Apache License 2.0
35 stars 70 forks source link

change the method to get PCHID to tolerate the SSI scenario #758

Closed dongyanyang closed 11 months ago

dongyanyang commented 11 months ago

Problem: When CHPID virtualization is enabled, lschp command does not output the real PCHID info.

This fix change the method to get PCHID:

  1. Check whether chpid virtualization is enabled with following cmd:

    [root@quality-ssi003 ~]# vmcp q chpidv
    One path CHPID Virtualization is on
    [root@m5402011 ~]# vmcp q chpidv
    CHPID Virtualization is off
  2. If off, use original cmd lschp to get the PCHID.

  3. otherwise, use vmcp q chpid xx pchid to get the PCHID.

dongyanyang commented 11 months ago

Continue to Fix UT error and Adding new UT cases now.