void register_device_unmigratable(DeviceState *dev, const char *idstr,

                                                            void *opaque)

{

    SaveStateEntry *se;

    char id[256] = "";



    if (dev && dev->parent_bus && dev->parent_bus->info->get_dev_path) {

        char *path = dev->parent_bus->info->get_dev_path(dev);

        if (path) {

            pstrcpy(id, sizeof(id), path);

            pstrcat(id, sizeof(id), "/");

            g_free(path);

        }

    }

    pstrcat(id, sizeof(id), idstr);



    QTAILQ_FOREACH(se, &savevm_handlers, entry) {

        if (strcmp(se->idstr, id) == 0 && se->opaque == opaque) {

            se->no_migrate = 1;

        }

    }

}

void register_device_unmigratable(DeviceState *dev, const char *idstr,

                                                            void *opaque)

{

    SaveStateEntry *se;

    char id[256] = "";



    if (dev && dev->parent_bus && dev->parent_bus->info->get_dev_path) {

        char *path = dev->parent_bus->info->get_dev_path(dev);

        if (path) {

            pstrcpy(id, sizeof(id), path);

            pstrcat(id, sizeof(id), "/");

            g_free(path);

        }

    }

    pstrcat(id, sizeof(id), idstr);



    QTAILQ_FOREACH(se, &savevm_handlers, entry) {

        if (strcmp(se->idstr, id) == 0 && se->opaque == opaque) {

            se->no_migrate = 1;

        }

    }

}

void FUNC_0(DeviceState *VAR_0, const char *VAR_1,

                                                            void *VAR_2)

{

    SaveStateEntry *se;

    char VAR_3[256] = "";



    if (VAR_0 && VAR_0->parent_bus && VAR_0->parent_bus->info->get_dev_path) {

        char *VAR_4 = VAR_0->parent_bus->info->get_dev_path(VAR_0);

        if (VAR_4) {

            pstrcpy(VAR_3, sizeof(VAR_3), VAR_4);

            pstrcat(VAR_3, sizeof(VAR_3), "/");

            g_free(VAR_4);

        }

    }

    pstrcat(VAR_3, sizeof(VAR_3), VAR_1);



    QTAILQ_FOREACH(se, &savevm_handlers, entry) {

        if (strcmp(se->VAR_1, VAR_3) == 0 && se->VAR_2 == VAR_2) {

            se->no_migrate = 1;

        }

    }

}

void FUNC_0(DeviceState *VAR_0, const char *VAR_1,
void *VAR_2)
{ SaveStateEntry *se; char VAR_3[256] = ""; if (VAR_0 && VAR_0->parent_bus && VAR_0->parent_bus->info->get_dev_path) { char *VAR_4 = VAR_0->parent_bus->info->get_dev_path(VAR_0); if (VAR_4) { pstrcpy(VAR_3, sizeof(VAR_3), VAR_4); pstrcat(VAR_3, sizeof(VAR_3), "/"); g_free(VAR_4); } } pstrcat(VAR_3, sizeof(VAR_3), VAR_1); QTAILQ_FOREACH(se, &savevm_handlers, entry) { if (strcmp(se->VAR_1, VAR_3) == 0 && se->VAR_2 == VAR_2) { se->no_migrate = 1; } } }