OSDN Git Service

s390x/pci: add routine to get host function handle from CLP info
authorMatthew Rosato <mjrosato@linux.ibm.com>
Fri, 2 Sep 2022 17:27:31 +0000 (13:27 -0400)
committerThomas Huth <thuth@redhat.com>
Mon, 26 Sep 2022 15:23:47 +0000 (17:23 +0200)
commit21fa15298d88db2050a713cdf79c10cb0e09146f
treeb255fd38b0fd57b92ec66581f0ac4ca55830283b
parentd525f73f9186a5bc641b8caf0b2c9bb94e5aa963
s390x/pci: add routine to get host function handle from CLP info

In order to interface with the underlying host zPCI device, we need
to know its function handle. Add a routine to grab this from the
vfio CLP capabilities chain.

Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Message-Id: <20220902172737.170349-3-mjrosato@linux.ibm.com>
[thuth: Replace free(info) with g_free(info)]
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/s390-pci-vfio.c
include/hw/s390x/s390-pci-vfio.h