From: Ian Jackson Subject: Re: [v3 12/13] arm: Allow the user to specify the GIC version Date: Wed, 1 Jul 2015 14:52:11 +0100 Message-ID: <21907.61579.913529.308479@mariner.uk.xensource.com> References: <1435748473-28812-1-git-send-email-julien.grall@citrix.com> <1435748473-28812-14-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZAIQz-0005R2-F1 for xen-devel@lists.xenproject.org; Wed, 01 Jul 2015 13:52:17 +0000 In-Reply-To: <1435748473-28812-14-git-send-email-julien.grall@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, stefano.stabellini@citrix.com, ian.campbell@citrix.com, Wei Liu List-Id: xen-devel@lists.xenproject.org Julien Grall writes ("[v3 12/13] arm: Allow the user to specify the GIC version"): > A platform may have a GIC compatible with previous version of the > device. ... > +=item B > + > +Version of the GIC emulated for the guest. Currently, the following > +versions are supported: This documentation should say what happens if this is not specified. If the default behaviour is not simply `v3' (which I think it isn't) then there should be a way to explicitly request it. That is, there should not be a behaviour which is only obtainable by not setting the config option. Instead, there should be a config option value to request whatever that behaviour is. (At the xl layer.) AFIACT the default is "offer the guest the hardware's native version". I think having called this XEN_DOMCTL_CONFIG_GIC_DEFAULT is rather odd. I think "native" would be a better description. It might be better to deal with this default-filling-in by changing the value in the domain config struct along with the other setdefault type things in libxl_create.c. If you do that, then saying `libxl_domain_create_new', and then looking at the supplied config, will give you a config specifying the GIC version explicitly, which I think is more correct. Ian.