void virtio_net_exit(VirtIODevice *vdev)

{

    VirtIONet *n = DO_UPCAST(VirtIONet, vdev, vdev);

    qemu_del_vm_change_state_handler(n->vmstate);



    if (n->vhost_started) {

        vhost_net_stop(tap_get_vhost_net(n->nic->nc.peer), vdev);

    }



    qemu_purge_queued_packets(&n->nic->nc);



    unregister_savevm(n->qdev, "virtio-net", n);



    qemu_free(n->mac_table.macs);

    qemu_free(n->vlans);



    qemu_del_timer(n->tx_timer);

    qemu_free_timer(n->tx_timer);



    virtio_cleanup(&n->vdev);

    qemu_del_vlan_client(&n->nic->nc);

}

void virtio_net_exit(VirtIODevice *vdev)

{

    VirtIONet *n = DO_UPCAST(VirtIONet, vdev, vdev);

    qemu_del_vm_change_state_handler(n->vmstate);



    if (n->vhost_started) {

        vhost_net_stop(tap_get_vhost_net(n->nic->nc.peer), vdev);

    }



    qemu_purge_queued_packets(&n->nic->nc);



    unregister_savevm(n->qdev, "virtio-net", n);



    qemu_free(n->mac_table.macs);

    qemu_free(n->vlans);



    qemu_del_timer(n->tx_timer);

    qemu_free_timer(n->tx_timer);



    virtio_cleanup(&n->vdev);

    qemu_del_vlan_client(&n->nic->nc);

}

    qemu_del_timer(n->tx_timer);     qemu_free_timer(n->tx_timer);
void FUNC_0(VirtIODevice *VAR_0)

{

    VirtIONet *n = DO_UPCAST(VirtIONet, VAR_0, VAR_0);

    qemu_del_vm_change_state_handler(n->vmstate);



    if (n->vhost_started) {

        vhost_net_stop(tap_get_vhost_net(n->nic->nc.peer), VAR_0);

    }



    qemu_purge_queued_packets(&n->nic->nc);



    unregister_savevm(n->qdev, "virtio-net", n);



    qemu_free(n->mac_table.macs);

    qemu_free(n->vlans);



    qemu_del_timer(n->tx_timer);

    qemu_free_timer(n->tx_timer);



    virtio_cleanup(&n->VAR_0);

    qemu_del_vlan_client(&n->nic->nc);

}

void FUNC_0(VirtIODevice *VAR_0)
{ VirtIONet *n = DO_UPCAST(VirtIONet, VAR_0, VAR_0); qemu_del_vm_change_state_handler(n->vmstate); if (n->vhost_started) { vhost_net_stop(tap_get_vhost_net(n->nic->nc.peer), VAR_0); } qemu_purge_queued_packets(&n->nic->nc); unregister_savevm(n->qdev, "virtio-net", n); qemu_free(n->mac_table.macs); qemu_free(n->vlans); qemu_del_timer(n->tx_timer); qemu_free_timer(n->tx_timer); virtio_cleanup(&n->VAR_0); qemu_del_vlan_client(&n->nic->nc); }