[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 5/5] libxl: spawns two QEMUs for HVM guests



Ian Jackson writes ("Re: [PATCH v2 5/5] libxl: spawns two QEMUs for HVM 
guests"):
> The spawn_outcome function does something like this:
> 
>        int worst_rc = 0;
> 
>        libxl_report_child_exitstatus(...)
>        dcs->qemus[myself]->rc = status ? ERROR_QEMU_DIED : 0;
> 
>        for (i=0; i<n_qemus; i++) {
>           if (libxl__ev_child_inuse(&dcs->qemus[i].childw))
>               return;
>           if (dcs->qemus[i].rc IS WORSE THAN worst_rc)
>               worst_rc = dcs->qemus[i].rc;
>        }
>        /* all qemus have completed */
>        if (worst_rc)
>            domcreate_complete(egc, dcs, worst_rc)
>        else
>           domain_create_do_next_thing(egc, dcs, ...);

... except you're using libxl__spawn, not libxl__ev_child, so you
don't get status but rather rc and you don't need to call
libxl_report_child_exitstatus, and instead of a childw you probably
have a dmss.  But the principles are the same.

Ian.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.