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

Re: [Xen-devel] [PATCH 10 of 15] xenpaging: compare both token and path

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 10 of 15] xenpaging: compare both token and path when checking for @releaseDomain event
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 25 Oct 2011 20:02:39 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 25 Oct 2011 11:14:04 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1319565771; l=1201; s=domk; d=aepfle.de; h=In-Reply-To:Content-Type:MIME-Version:References:Subject:Cc:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=FtXaiqefzTCSTTgmZwBmiITqyGg=; b=QGN8A5eB7TTzV/XQ8uBVvJZHNw1jMA3Bnxn7CV5PLn+7dNixu/dDUVK1LFGI1eZUFoS PN+yr1EGuZ0zhHXcfYezvmsRbcVrDimr//bnJuAkqhoNqd1Vvl7Slx7unTI/gVmiNpV+L jJFKduMa0BElQaaqklU4vUsNHj7VihFDZQ0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20134.62630.115259.632324@xxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1319189494@xxxxxxxxxxxx> <0b7d7a2bd6673f358faf.1319189504@xxxxxxxxxxxx> <20134.62630.115259.632324@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21.rev5535 (2011-07-01)
On Tue, Oct 25, Ian Jackson wrote:

> Olaf Hering writes ("[Xen-devel] [PATCH 10 of 15] xenpaging: compare both 
> token and path when checking for @releaseDomain event"):
> > xenpaging: compare both token and path when checking for @releaseDomain 
> > event
> > 
> > Subsequent patches will use xenstored to store the numbers of pages
> > xenpaging is suppose to page-out. A domain_id value could be
> > misinterpreted as number of pages. Compare both path and token to
> > recognize the @releaseDomain event.
> 
> I'm not sure I understand.  What are you currently using as the
> token ?  The token as well as the path should be sufficient to be able
> to tell what the event is, so this patch makes me suspicious ...

I was under the impression there could be identical tokens for different
paths, and that the actual value of the watched path is part of
XS_WATCH_TOKEN.  So this patch tries to make the detection of the
@releaseDomain event more robust.

But since the token seems to be unique (docs/misc/xenstore.txt has no
further description of 'token'), only the DPRINTF part of my patch
should be kept.

Please drop this change, I will add the DPRINTF in a separate patch.

Olaf

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