All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Re: [PATCH] libxl: check for early failures of qemu-dm (v2)
Date: Mon, 16 Nov 2009 15:59:04 +0000	[thread overview]
Message-ID: <4B0176C8.6030005@eu.citrix.com> (raw)
In-Reply-To: <19201.27696.30222.232418@mariner.uk.xensource.com>

Ian Jackson wrote:
>>    
>> Did you have the qemu-dm ready patch in qemu ?
>>     
>
> This is not relevant because my qemu currently dies before it gets to
> that point.  Stefano tested v1 of my patch and it worked for him.
>   
it's not irrelevant. as heavy discuss before, fixing the ready problem 
fix the qemu died in the meantime problem too (not ideally since you 
end-up waiting timeout, but it does). what you did is just an 
optimisation of the qemu died problem, which leave one problem open.

> No, it can't, because there is actual functionality in the
> intermediate process.  The libxl_fork function is not provided for the
> benefit of "providing wrapper for syscalls".  It is there to factor
> out the common error handling for the two instances of fork in
> libxl.c.
>   
you can have a middle process callback without any problem within the 
libxl_exec call.
> Why is it necessary ?  Some applications have an event loop or SIGCHLD
> handler which automatically reaps all children.  In such an
> application in order to collect a child process exit status we need to
> allow the application to look the process up in its own table of
> reaped processes.
>   
sounds a bit premature, since we don't even have such an application yet 
nor that we ever had in the past either.
> The osdeps arrangements were broken and backwards.  We were compiling
> them in on Linux, which isn't necessary.  It's not necessary on BSD
> either, but BSD presumably barfed on it because it declared the system
> asprintf without special handling.
>   
yep
>> no, otherwise the init ctx need to allocate itself the memory of the 
>> context, instead of having
>> the caller "allocate it" itself on the fct stack.
>>     
>
> If you do that then libxl can't be linked dynamically.  We should talk
> about this.
>   
it *can* be linked dynamically. the only "shortcoming" is the context 
structure can't grow dynamically. the same happens to all structures 
that we use for argument passing.

-- 
Vincent

      reply	other threads:[~2009-11-16 15:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-16 12:10 [PATCH] libxl: check for early failures of qemu-dm (v2) Ian Jackson
2009-11-16 14:52 ` Vincent Hanquez
2009-11-16 15:13   ` Ian Jackson
2009-11-16 15:59     ` Vincent Hanquez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B0176C8.6030005@eu.citrix.com \
    --to=vincent.hanquez@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.