From: Ian Campbell Subject: Re: [PATCH for-4.6 v2] libxl: check nesthvm and altp2m in libxl Date: Tue, 28 Jul 2015 11:41:32 +0100 Message-ID: <1438080092.11600.123.camel@citrix.com> References: <1438005692-21976-1-git-send-email-wei.liu2@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 1ZK2KN-0001vA-4t for xen-devel@lists.xenproject.org; Tue, 28 Jul 2015 10:41:43 +0000 In-Reply-To: <1438005692-21976-1-git-send-email-wei.liu2@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: Wei Liu , Xen-devel Cc: "Sahita, Ravi" , Ian Jackson , Ed White List-Id: xen-devel@lists.xenproject.org On Mon, 2015-07-27 at 15:01 +0100, Wei Liu wrote: > In ea214001 ("x86/altp2m: add altp2mhvm HVM domain parameter"), a > check was added to ensure nestedhvm and altp2m cannot be enabled at > the same time. That check was added in xl, but in fact it should be in > libxl because it should be the entity that decides whether > the provided configuration is valid. > > This patch moves the check to libxl. The code snippet is moved after > calling libxl__domain_build_info_setdefault so that we can: > 1. remove libxl_defbool_is_default in `if()'; > 2. detect mistake in libxl__domain_build_info_setdefault. > > Signed-off-by: Wei Liu Acked + applied.