OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89d5202
)
hw/vfio/platform: Init the interrupt mutex
author
Eric Auger
<eric.auger@redhat.com>
Tue, 6 Feb 2018 18:08:26 +0000
(11:08 -0700)
committer
Alex Williamson
<alex.williamson@redhat.com>
Tue, 6 Feb 2018 18:08:26 +0000
(11:08 -0700)
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>
hw/vfio/platform.c
patch
|
blob
|
history
diff --git
a/hw/vfio/platform.c
b/hw/vfio/platform.c
index
da84abf
..
0d4bc0a
100644
(file)
--- 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);