From 89202c6fa87d4f181111901bb08dcd1538f8ab35 Mon Sep 17 00:00:00 2001 From: Eric Auger Date: Tue, 6 Feb 2018 11:08:26 -0700 Subject: hw/vfio/platform: Init the interrupt mutex Add the initialization of the mutex protecting the interrupt list. Signed-off-by: Eric Auger Signed-off-by: Alex Williamson --- hw/vfio/platform.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/vfio/platform.c') diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c index da84abf4fc..0d4bc0aae8 100644 --- a/hw/vfio/platform.c +++ b/hw/vfio/platform.c @@ -643,6 +643,8 @@ static void vfio_platform_realize(DeviceState *dev, Error **errp) vbasedev->dev = dev; vbasedev->ops = &vfio_platform_ops; + qemu_mutex_init(&vdev->intp_mutex); + trace_vfio_platform_realize(vbasedev->sysfsdev ? vbasedev->sysfsdev : vbasedev->name, vdev->compat); -- cgit v1.2.3-55-g7522