Skip to content
Snippets Groups Projects
user avatar
Cornelia Huck authored
The zPCI group and function structures are big endian. However, we do
not consistently store them as big endian locally, and are missing some
conversions.

Let's just store the structures as host endian instead and convert to
big endian when actually handling the instructions retrieving the data.

Also fix the layout of ClpReqQueryPciGrp: g is actually only 8 bit. This
also fixes accesses on little endian hosts, and makes accesses on big
endian hosts consistent.

Fixes: 28dc86a0 ("s390x/pci: use a PCI Group structure")
Fixes: 9670ee75 ("s390x/pci: use a PCI Function structure")
Fixes: 1e7552ff ("s390x/pci: get zPCI function info from host")
Signed-off-by: default avatarCornelia Huck <cohuck@redhat.com>
Tested-by: default avatarMatthew Rosato <mjrosato@linux.ibm.com>
Tested-by: default avatarThomas Huth <thuth@redhat.com>
Reviewed-by: default avatarMatthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Message-Id: <20201118104202.1301363-1-cohuck@redhat.com>
a4e2fff1
History
Name Last commit Last update