Il 16/04/2013 04:44, mrhi...@linux.vnet.ibm.com ha scritto:
> +void ram_control_load_hook(QEMUFile *f, uint32_t flags)
> +{
> +    int ret = 0;
> +
> +    if (f->ops->hook_ram_load) {
> +        ret = f->ops->hook_ram_load(f, f->opaque, flags);
> +        if (ret < 0) {
> +            qemu_file_set_error(f, ret);
> +        }
> +    }
> +}

This must set an error if the hook is not implemented.

Paolo

Reply via email to