summary refs log tree commit diff stats
path: root/hw/misc/hyperv_testdev.c
diff options
context:
space:
mode:
authorRoman Kagan <rkagan@virtuozzo.com>2018-09-21 11:18:33 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-19 13:44:13 +0200
commitb56920245c1f708976b6f1bf8ddc4a1e9bd33059 (patch)
tree0d759a198f2be17db5fdb4a55eb2c90756b15ea9 /hw/misc/hyperv_testdev.c
parentbd4ed63caafe0bd14393db0d7ef3a70860ec6f2d (diff)
downloadfocaccia-qemu-b56920245c1f708976b6f1bf8ddc4a1e9bd33059.tar.gz
focaccia-qemu-b56920245c1f708976b6f1bf8ddc4a1e9bd33059.zip
hyperv: allow passing arbitrary data to sint ack callback
Make sint ack callback accept an opaque pointer, that is stored on
sint_route at creation time.

This allows for more convenient interaction with the callback.

Besides, nothing outside hyperv.c should need to know the layout of
HvSintRoute fields any more so its declaration can be removed from the
header.

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Message-Id: <20180921081836.29230-6-rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/hyperv_testdev.c')
-rw-r--r--hw/misc/hyperv_testdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/hyperv_testdev.c b/hw/misc/hyperv_testdev.c
index 7291fb1c62..1f32d3c9dd 100644
--- a/hw/misc/hyperv_testdev.c
+++ b/hw/misc/hyperv_testdev.c
@@ -52,7 +52,7 @@ static void sint_route_create(HypervTestDev *dev,
     sint_route->vp_index = vp_index;
     sint_route->sint = sint;
 
-    sint_route->sint_route = kvm_hv_sint_route_create(vp_index, sint, NULL);
+    sint_route->sint_route = kvm_hv_sint_route_create(vp_index, sint, NULL, NULL);
     assert(sint_route->sint_route);
 
     QLIST_INSERT_HEAD(&dev->sint_routes, sint_route, le);