 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxl/arm: fix guest type conversion
 Hi Wei, On 01/11/2018 08:59, Wei Liu wrote: On Wed, Oct 31, 2018 at 08:16:52PM +0000, Julien Grall wrote:Hi Wei, On 10/31/18 2:25 PM, Wei Liu wrote: I think we can remove this logging if we rely on c_info->type == b_info->type. Do you see a use case where c_info->type is different from b_info->type? Do we need a check for that somewhere in the code?No, I don't think there will be cases where c_info->type is different from b_info->type. The type in b_info is used as a key to the keyed union. The normal way of using it is to call libxl_domain_build_info_init_type with c_info->type (see xl_parse.c:L1316). I tried to follow that path as well, but the plumbing became unwieldy. Regarding adding a check, that's probably a good idea, but it is out of scope of this patch. I wasn't suggested it for this patch :). Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |