X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Flnx_virtio_vnet.c;h=9e10784561e5df9c85c5379b30dcff47f80892ef;hb=6d6988cc9c8bac21d96afd800076afe0915cf2cd;hp=7746bcc0b20174734865646460bb6afc34ce1d11;hpb=c337a47be935380fba4b7425e80be7c089e45e6c;p=palacios.git diff --git a/palacios/src/devices/lnx_virtio_vnet.c b/palacios/src/devices/lnx_virtio_vnet.c index 7746bcc..9e10784 100644 --- a/palacios/src/devices/lnx_virtio_vnet.c +++ b/palacios/src/devices/lnx_virtio_vnet.c @@ -562,12 +562,17 @@ static int vnet_virtio_io_read(struct guest_info * core, } +static int virtio_free(struct virtio_vnet_state * vnet_state) { + + // unregister from PCI + + V3_Free(vnet_state); + return 0; +} + static struct v3_device_ops dev_ops = { - .free = NULL, - .reset = NULL, - .start = NULL, - .stop = NULL, + .free = (int (*)(void *))virtio_free, }; static int dev_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) {