diff options
author | Eric Auger <eric.auger@redhat.com> | 2018-02-06 11:08:26 -0700 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2018-02-06 11:08:26 -0700 |
commit | 89202c6fa87d4f181111901bb08dcd1538f8ab35 (patch) | |
tree | a38c98f049af82f06610a0cb31a510dd5a964030 | |
parent | 89d5202edc5053e167c97f8e2341b2b9aa03a5c2 (diff) |
hw/vfio/platform: Init the interrupt mutex
Add the initialization of the mutex protecting the interrupt list.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
-rw-r--r-- | hw/vfio/platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |