Change-Id: If718c77de19a889746a25a2dd51881dce52ef4b4
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
int queues, i;
queues = qemu_find_net_clients_except(NULL, ncs,
- NET_CLIENT_OPTIONS_KIND_NIC,
+ NET_CLIENT_DRIVER_NIC,
MAX_QUEUE_NUM);
for (i = 0; i < queues; ++i) {
- if (ncs[i]->info->type == NET_CLIENT_DRIVER_TAP &&
- (ncs[i]->peer->info->type == NET_CLIENT_DRIVER_NIC ||
- // for legacy -net option.
- ncs[i]->peer->info->type == NET_CLIENT_DRIVER_HUBPORT)) {
- if (ncs[i]->info->type == NET_CLIENT_OPTIONS_KIND_TAP) {
++ if (ncs[i]->info->type == NET_CLIENT_DRIVER_TAP) {
return true;
}
}
tpm_cleanup();
#endif
+ /* vhost-user must be cleaned up before chardevs. */
+ net_cleanup();
+ audio_cleanup();
+ monitor_cleanup();
+ qemu_chr_cleanup();
+
+ #if defined(CONFIG_MARU) && defined(CONFIG_QT)
+ switch (display_type) {
+ case DT_MARU_QT_ONSCREEN:
+ case DT_MARU_QT_OFFSCREEN:
+ maru_qt5_display_fini();
+ break;
+ default:
+ break;
+ }
+ #endif
+
return 0;
}