From: Keir Fraser Subject: Re: Re: dumpcore changes -- [Xen-changelog] [xen-unstable] In this patch, the xc_domain_dumpcore_via_callback() in xc_core.c of Date: Mon, 18 Sep 2006 14:26:36 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1536558415==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: B Thomas , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============1536558415== Content-type: multipart/alternative; boundary="B_3241434397_1074786" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3241434397_1074786 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Yuk. This patch should never have been applied. It=B9s certainly clearly neve= r been tested (e.g., because the iteration variable was changed from =8Ci=B9 to =8Cn=B9 the copy_from_domain_page() now always copies from the wrong page). Eve= n if it did work, the interface change is more than a little questionable. I=B9ll revert the patch. Thanks for flagging the issue. -- Keir On 18/9/06 13:39, "B Thomas" wrote: > This change has the effect of adding some complexity to the callback rout= ines. > The original callback passed an opaque argument which was a private item = for > the use of the controlling mechanism and its callback function. This cha= nge > removes this and specifies only an fd. While it's possible for the > controlling mechanism to use the fd as an index to find internal data > structures, this is a bit more work and it's not clear to me that it make= s the > interface more usable. You could also easily image controlling mechanisms= that > did not use an fd, in which case this would simply be an "index". >=20 > This also changes the user-mode programs that might call this library. W= hile > such changes sometimes cannot be avoided, it's certainly appealing to ret= ain > APIs where possible. (The comment should also be cleaned up) >=20 > Was there a specific reason for the interface change ? If so, knowing mo= re > about it would help my understanding of this change. --B_3241434397_1074786 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Re: dumpcore changes -- [Xen-changelog] [xen-unstabl= e] In this patch, the xc_domain_dumpcore_via_callback() in xc_core.c of</TIT= LE> </HEAD> <BODY> <FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'><BR> Yuk. This patch should never have been applied. It’s certainly clearl= y never been tested (e.g., because the iteration variable was changed from &= #8216;i’ to ‘n’ the copy_from_domain_page() now always cop= ies from the wrong page). Even if it did work, the interface change is more = than a little questionable.<BR> <BR> I’ll revert the patch. Thanks for flagging the issue.<BR> <BR>  -- Keir<BR> <BR> On 18/9/06 13:39, "B Thomas" <bjthomas3@gmail.com> wrote:<B= R> <BR> </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL= E=3D'font-size:12.0px'>This change has the effect of adding some complexity to= the callback routines. The original callback passed an opaque argument whic= h was a private item for the use of the controlling mechanism and its callba= ck function.  This change removes this and specifies only an fd.  = While it's possible for the controlling mechanism to use the fd as an index = to find internal data structures, this is a bit more work and it's not clear= to me that it makes the interface more usable. You could also easily image = controlling mechanisms that did not use an fd, in which case this would simp= ly be an "index".<BR> <BR> This also changes the user-mode programs that might call this library. &nbs= p;While such changes sometimes cannot be avoided, it's certainly appealing t= o retain APIs where possible. (The comment should also be cleaned up)<BR> <BR> Was there a specific reason for the interface change ?  If so, knowing= more about it would help my understanding of this change.<BR> </SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY= LE=3D'font-size:12.0px'><BR> </SPAN></FONT> </BODY> </HTML> --B_3241434397_1074786-- --===============1536558415== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1536558415==--