The build error is due to the changes in the enum virMediatedDeviceModelType
Change the assignment from 2 to 1 for VIR_MDEV_MODEL_TYPE_VFIO_AP.
--- a/src/util/virmdev.h
+++ b/src/util/virmdev.h
@@ -26,6 +26,7 @@
typedef enum {
VIR_MDEV_MODEL_TYPE_VFIO_PCI = 0,
+ VIR_MDEV_MODEL_TYPE_VFIO_AP = 2,
VIR_MDEV_MODEL_TYPE_LAST
} virMediatedDeviceModelType;
There is most likely also trouble ahead regarding the use of the macro virReportEnumRangeError. This needs to be replaced with
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Unexpected enum value %d for "
"virMediatedDeviceModelType"),
mdevsrc->model);
I will try to create a patch series based on v4.0.0
------- Comment From <email address hidden> 2018-11-16 04:33 EDT------- /launchpadlibra rian.net/ 397706595/ buildlog_ ubuntu- bionic- s390x. 4.0.0-1ubuntu8. 6~ppa1_ BUILDING. txt.gz
(In reply to comment #65)
> FYI: build log of the current incomplete backport:
> https:/
> libvirt_
The build error is due to the changes in the enum virMediatedDevi ceModelType MODEL_TYPE_ VFIO_AP. virmdev. h virmdev. h MODEL_TYPE_ VFIO_PCI = 0, MODEL_TYPE_ VFIO_AP = 2, MODEL_TYPE_ LAST ceModelType;
Change the assignment from 2 to 1 for VIR_MDEV_
--- a/src/util/
+++ b/src/util/
@@ -26,6 +26,7 @@
typedef enum {
VIR_MDEV_
+ VIR_MDEV_
VIR_MDEV_
} virMediatedDevi
There is most likely also trouble ahead regarding the use of the macro virReportEnumRa ngeError. This needs to be replaced with VIR_ERR_ INTERNAL_ ERROR, iceModelType" ),
virReportError(
_("Unexpected enum value %d for "
"virMediatedDev
mdevsrc->model);
I will try to create a patch series based on v4.0.0