[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v5 RFC 05/14] tools/libxc: noarch common code



On 17/06/14 17:53, Ian Campbell wrote:
> On Tue, 2014-06-17 at 17:28 +0100, Andrew Cooper wrote:
>>>> +// Hack out junk from the namespace
>>> Do you have a plan to not need these hacks?
>> Not really.  There are enough other areas of libxc which still use these
>> macros, and I can't go and simply update all other areas as 
> I (or rather git grep) can't see the existing definitions/uses
> mfn_to_pfn and pfn_to_mfn outside of xc_domain_{save,restore}.c. Where
> are the defined and used outside of those?

mfn_to_pfn it turns out isn't.  pfn_to_mfn is used once in xc_domain.c. 
Open coding it might be a solution.

>
> (I see some in mini-os, but you specifically said libxc)

MiniOS will undoubtedly using its kernel versions of these functions, so
is not relevant here.

>
> Likewise for the *_FIELD stuff which is used in ~2 places outside the
> save restore code according to grep.

xc_core_x86.c defines itself GET_FIELD() so clearly doesn't use
xg_save_restore.h

xc_resume.c clearly uses xg_save_restore.h but could probably be
converted to be similar to xc_core_x86.c

>
>> struct
>> context is meaningless outside of libxc/saverestore.
> So how are these used there?
>
> Ian.
>

They are not.  They are reimplemented in common_x86_pv.h so as to not
take magic locally scoped variables with specific names.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.