diff options
author | Matthew Rosato | 2020-10-26 16:34:41 +0100 |
---|---|---|
committer | Alex Williamson | 2020-11-01 20:30:52 +0100 |
commit | 1e7552ff5c34972a7a17d2b06900a0b66c79a68b (patch) | |
tree | cf45f711a925437b91fb72777310f558fb33e8bf /hw/vfio | |
parent | vfio: Add routine for finding VFIO_DEVICE_GET_INFO capabilities (diff) | |
download | qemu-1e7552ff5c34972a7a17d2b06900a0b66c79a68b.tar.gz qemu-1e7552ff5c34972a7a17d2b06900a0b66c79a68b.tar.xz qemu-1e7552ff5c34972a7a17d2b06900a0b66c79a68b.zip |
s390x/pci: get zPCI function info from host
We use the capability chains of the VFIO_DEVICE_GET_INFO ioctl to retrieve
the CLP information that the kernel exports.
To be compatible with previous kernel versions we fall back on previous
predefined values, same as the emulation values, when the ioctl is found
to not support capability chains. If individual CLP capabilities are not
found, we fall back on default values for only those capabilities missing
from the chain.
This patch is based on work previously done by Pierre Morel.
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
[aw: non-Linux build fixes]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/vfio')
0 files changed, 0 insertions, 0 deletions