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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] [PATCH 3/4] libxl: add version_info function [and 1 more

To: Andre Przywara <andre.przywara@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH 3/4] libxl: add version_info function [and 1 more messages]
From: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Date: 2010年4月21日 13:53:43 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: 2010年4月21日 05:54:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BCEEB43.8090406@xxxxxxx>
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: <4BCB76FD.1020103@xxxxxxx> <4BCB791E.7000204@xxxxxxx> <4BCC0F86.8090707@xxxxxxxxxxxxx> <19404.30856.176804.871256@xxxxxxxxxxxxxxxxxxxxxxxx> <4BCCC062.5080008@xxxxxxx> <4BCD6775.7060800@xxxxxxxxxxxxx> <4BCEEB43.8090406@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100411 Icedove/3.0.4
On 21/04/10 13:10, Andre Przywara wrote:
I just wanted to avoid introducing a lot of functions which could be
actually one. And if a user passes a wrong mask, then well, he is just
doing the wrong thing and cannot expect it to work. If Xen provides a
possibility to query single parts of the information, why should we hide
this capability from the upper layers?
well that's just for simplicity.
But when I was looking at the libxl_sprintf thing, I realized that all
the information in the info structure is static and will never change
during runtime. Am I right? If so, we can solve this whole thing by not
only storing the strings in libxl_ctx, but the whole structure. The
first call to the function would query all the members, subsequent calls
would just return the pointer. This avoids duplication should the
function be called multiple times. It would be automatically freed when
destroying the xl context.
What do you think of this?
I think that's quite reasonable and a good idea all in all. the API stays simple, and most potential performance issues are just dealt with.
--
Vincent
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-devel] Failure to load the most recent kernel 2.6.32.10 ( xen/stable) under Xen 4.0 on Ubuntu 9.10 , Boris Derzhavets
Next by Date: Re: [Xen-devel] [PATCH] pv-ops: Fix missing 'ifdef CONFIG_XEN' in acpi , Konrad Rzeszutek Wilk
Previous by Thread: Re: [Xen-devel] [PATCH 3/4] libxl: add version_info function [and 1 more messages] , Andre Przywara
Next by Thread: [Xen-devel] [PATCH 4/4] xl: add "xl info" command , Andre Przywara
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /