From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel De Graaf Subject: Re: [PATCH v4 2/2] allow hardware domain != dom0 Date: Tue, 15 Apr 2014 18:07:55 -0400 Message-ID: <534DADBB.8070107@tycho.nsa.gov> References: <1397510594-5301-1-git-send-email-dgdegra@tycho.nsa.gov> <1397510594-5301-2-git-send-email-dgdegra@tycho.nsa.gov> <534D4627.4050408@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <534D4627.4050408@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: Andrew Cooper Cc: Keir Fraser , Ian Campbell , Tim Deegan , Ian Jackson , xen-devel@lists.xen.org, Jan Beulich List-Id: xen-devel@lists.xenproject.org On 04/15/2014 10:45 AM, Andrew Cooper wrote: > On 14/04/14 22:23, Daniel De Graaf wrote: >> diff --git a/xen/common/domain.c b/xen/common/domain.c >> index 3c05711..11c905a 100644 >> --- a/xen/common/domain.c >> +++ b/xen/common/domain.c >> @@ -61,6 +61,11 @@ struct domain *domain_list; >> >> struct domain *hardware_domain __read_mostly; >> >> +#ifdef CONFIG_LATE_HWDOM >> +domid_t hardware_domid __read_mostly; >> +integer_param("hardware_dom", hardware_domid); >> +#endif >> + > > Is it worth putting a custom_param() in here which clamps hardware_domid > below FIRST_RESERVED_DOMID, or allow anyone specifying > hardware_dom=0xffff to keep all the broken pieces they find? Aliasing > the magic domids is sure to break things. > > ~Andrew I'm currently of the opinion that a custom_param is overkill to prevent users from deliberately doing bad things, but could easily write one if others think that it would be helpful. -- Daniel De Graaf National Security Agency