X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Flnx_virtio_symmod.c;h=993dcb6727a95b8052926327fec7efb728cc1551;hb=020108512c01b113a5e8cca88a8facdc5ba5488a;hp=d3d5d7ec4ecceedba81adbd8557737e41a30ee1d;hpb=72420d58d18ec71d4777d029daaf0c6a1c820b32;p=palacios.git diff --git a/palacios/src/devices/lnx_virtio_symmod.c b/palacios/src/devices/lnx_virtio_symmod.c index d3d5d7e..993dcb6 100644 --- a/palacios/src/devices/lnx_virtio_symmod.c +++ b/palacios/src/devices/lnx_virtio_symmod.c @@ -588,15 +588,16 @@ static int virtio_load_capsule(struct v3_vm_info * vm, struct v3_sym_capsule * m } -static int virtio_free(struct vm_device * dev) -{ - +static int virtio_free(struct virtio_sym_state * virtio_state) { + // unregister from PCI + + V3_Free(virtio_state); return 0; } static struct v3_device_ops dev_ops = { - .free = virtio_free, + .free = (int (*)(void *))virtio_free, };