From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 2 of 4] xc: split xc non-upstream bindings into xcext module Date: Fri, 19 Nov 2010 13:32:46 +0000 Message-ID: <1290173567.31507.5846.camel@zakaz.uk.xensource.com> References: <4CE539E4.9000204@eu.citrix.com> <1290094550.31507.5391.camel@zakaz.uk.xensource.com> <4CE662D9.6030808@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4CE662D9.6030808-mvvWK6WmYclDPfheJLI6IQ@public.gmane.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-api-bounces-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR@public.gmane.org Errors-To: xen-api-bounces-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR@public.gmane.org To: Vincent Hanquez Cc: xen-devel , "xen-api-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR@public.gmane.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2010-11-19 at 11:43 +0000, Vincent Hanquez wrote: > option 1 is more dynamic than option 2. you can mix and match backend > just setting/unsetting your XIU environment before any XC call technically. > this isn't possible with LD_PRELOAD, since it's one shot during the > start of your program. True, I hadn't thought of it that way. > 3 is pretty much equivalent to 1 and best technically IMO. Agreed. > it's just a bit more efforts to do, It turns out to have been a mornings work to implement the hooks support in libxc plus a simple "ENOSYS stub". I'm hoping it will be an afternoons work to port xc_lib_injection.c over, but perhaps I'm over ambitious ;-) Ian.