qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 09/11] hw/vfio/platform: Init the interrupt mutex


From: Alex Williamson
Subject: [Qemu-devel] [PULL 09/11] hw/vfio/platform: Init the interrupt mutex
Date: Tue, 06 Feb 2018 11:43:57 -0700
User-agent: StGit/0.18-102-gdf9f

From: Eric Auger <address@hidden>

Add the initialization of the mutex protecting the interrupt list.

Signed-off-by: Eric Auger <address@hidden>
Signed-off-by: Alex Williamson <address@hidden>
---
 hw/vfio/platform.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
index da84abf4fc4c..0d4bc0aae889 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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]