On Mon, 26 Oct 2020 11:34:41 -0400 Matthew Rosato <mjrosato@xxxxxxxxxxxxx> wrote: > 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@xxxxxxxxxxxxx> > --- > hw/s390x/s390-pci-bus.c | 9 +- > hw/s390x/s390-pci-vfio.c | 180 +++++++++++++++++++++++++++++++++++++++ > hw/s390x/trace-events | 6 ++ > include/hw/s390x/s390-pci-bus.h | 1 + > include/hw/s390x/s390-pci-clp.h | 12 ++- > include/hw/s390x/s390-pci-vfio.h | 1 + > 6 files changed, 202 insertions(+), 7 deletions(-) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>