Vitaly Kuznetsov <vkuzn...@redhat.com> writes:

> Perform soft reset when a domain did SHUTDOWN_soft_reset. Migrate the
> content with xc_domain_soft_reset(), reload dm and toolstack.
>

..skip..

> +void libxl__xc_domain_soft_reset(libxl__egc *egc,
> +                                 libxl__domain_create_state *dcs)
> +{
> +    STATE_AO_GC(dcs->ao);
> +    libxl_ctx *ctx = libxl__gc_owner(gc);
> +    const uint32_t domid_soft_reset = dcs->domid_soft_reset;
> +    const uint32_t domid = dcs->guest_domid;
> +    uint8_t *buf;
> +    uint32_t len;
> +    int rc;
> +    libxl__domain_suspend_state *dss;
> +
> +    GCNEW(dss);
> +    dss->ao = ao;
> +    dss->domid = domid_soft_reset;
> +
> +    rc = libxl__toolstack_save(domid_soft_reset, &buf, &len, dss);
> +    if (rc) goto out;

It turned out being too late, QEMU process for the original domain is
already dead at this point and xenstore in cleanen. Qemu-upstream will
fail when it requires e.g. video ram info. I'll move this call earlier
in the chain in v7.

..skip...

-- 
  Vitaly

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to