ctx.save.max_iterations = 5;
ctx.save.dirty_threshold = 50;
+ /* Sanity checks for callbacks. */
+ if ( hvm )
+ assert(callbacks->switch_qemu_logdirty);
+
IPRINTF("In experimental %s", __func__);
DPRINTF("fd %d, dom %u, max_iters %u, max_factor %u, flags %u, hvm %d",
io_fd, dom, max_iters, max_factor, flags, hvm);
{
xc_interface *xch = ctx->xch;
- if ( !ctx->save.callbacks->switch_qemu_logdirty )
- {
- ERROR("No switch_qemu_logdirty callback provided");
- errno = EINVAL;
- return -1;
- }
-
if ( ctx->save.callbacks->switch_qemu_logdirty(
ctx->domid, 1, ctx->save.callbacks->data) )
{