WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [Xen-changelog] New console transport and update xencons

To: Anthony Liguori <aliguori@xxxxxxxxxx>
Subject: [Xen-devel] Re: [Xen-changelog] New console transport and update xenconsoled.
From: Christian Limpach <christian.limpach@xxxxxxxxx>
Date: Wed, 31 Aug 2005 09:52:47 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Robert Read <robert@xxxxxxxxxxxxx>
Delivery-date: Wed, 31 Aug 2005 08:50:48 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cSvfRU4TBqvAc298YApEZbzzCeN7YI67U6IIsL34mlWJir0ymrKUd4PaFRUNmkqH4hY6lcE2ybucINKD+KV6OZLyg6nqPJlaUzh056jcBznHyhzHaqVyVvUuzUuJbVP31ra1/PnuJEve+0NpUNqZyV5Ks+PSrDPCCA7lCUj+9Hw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4314BECA.5070104@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <E1EA8qJ-0002Zl-23@xxxxxxxxxxxxxxxxxxxxx> <431490D4.20108@xxxxxxxxxx> <20050830174144.GT24659@xxxxxxxxxxxx> <4314BECA.5070104@xxxxxxxxxx>
Reply-to: Christian.Limpach@xxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 8/30/05, Anthony Liguori <aliguori@xxxxxxxxxx> wrote:
> >>considerably more robust.  The virq's aren't always delivered on domain
> >>destruction (they are only delivered if a domain crashes or is shutdown).
> I see from your latest checkins that you found out what I was talking about.

Yes, I hope that all cases are now covered.

> Although, I'm a bit confused at the semantics now.  Previously, a
> DOM_EXC VIRQ was delivered on shutdown or crash.  In both circumstances,
> there's always going to be a destroy that occurs after it (when Xend
> decides to clean up).
> 
> Now it appears that a VIRQ is delivered on shutdown, crash, and then
> again for destroy?  This means that for some domains it's delivered
> twice (when shutdown or crashed) and some domains it's delivered only
> once (if they are manually xm destroyed)?

Yes, I guess you can actually get upto 3 VIRQs now when a domain dies:
- shutdown/crash
- destroy
- final cleanup

This is ok though, anybody who listens for the VIRQ needs to handle
spurious VIRQs anyway since multiple domains ending at the same time
can raise an arbitrary number of VIRQs.  The VIRQ only tells you that
something has changed.

> I think I understand what you guys were trying to do, in consoled today
> domains are reaped only when 1) they are dead (or dying) and 2) their
> output buffers are empty.  This is to ensure that if you're connected to
> a console and the domain crashes, you still see all the console output.
> 
> For the domain to completely reap (in the new console code), you need to
> unmap the shared frame.  I think the right way to do this is when the
> domain destroy is detected (in the polling loop), to unmap the shared
> frame but not actually reap until the above conditions are satisified.

Yeah, at the moment we're still missing the code which lets the output
buffer get drained after we detect that a domain has ended.

    christian

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel