Bug 2165011

Summary: [s390x] add optional device address of channel device to css device
Product: Red Hat Enterprise Linux 8 Reporter: smitterl
Component: libvirtAssignee: Thomas Huth <thuth>
Status: CLOSED ERRATA QA Contact: smitterl
Severity: medium Docs Contact:
Priority: medium    
Version: 8.8CC: bugproxy, clegoate, dhorak, jdenemar, jferlan, jomiller, jsuchane, thuth, tstaudt, virt-maint, virt-qe-z
Target Milestone: rcKeywords: Triaged
Target Release: 8.8Flags: pm-rhel: mirror+
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-8.0.0-15.module+el8.8.0+18023+bf5b754e Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 08:18:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2095746    

Description smitterl 2023-01-27 11:18:57 UTC
Description of problem:
With https://bugzilla.redhat.com/show_bug.cgi?id=2154253 we got the dev_busid into the kernel. This BZ should add the //channel_dev_addr in the nodedev capability, details s. comment https://bugzilla.redhat.com/show_bug.cgi?id=2154253#c10


Acceptance criteria:

1. Given libvirt lists a css device css_0_0_0062
   When I dump the device xml
   Then the xml contains the element channel_dev_addr
   And the correct value for the css' device dev_busid attribute in sysfs


Additional info:
I think the required patch series is https://listman.redhat.com/archives/libvir-list/2022-May/231355.html

Comment 16 smitterl 2023-02-03 11:30:52 UTC
<device>
  <name>css_0_0_0000</name>
  <path>/sys/devices/css0/0.0.0000</path>
  <parent>computer</parent>
  <driver>
    <name>io_subchannel</name>
  </driver>
  <capability type='css'>
    <cssid>0x0</cssid>
    <ssid>0x0</ssid>
    <devno>0x0000</devno>
    <channel_dev_addr>
      <cssid>0x0</cssid>
      <ssid>0x0</ssid>
      <devno>0x0600</devno>
    </channel_dev_addr>
  </capability>
</device>

# rpm -q libvirt
libvirt-8.0.0-15.module+el8.8.0+18023+bf5b754e.s390x

Comment 18 errata-xmlrpc 2023-05-16 08:18:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2757