From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 6/9] Debian HVM guests: Honour enable_nestedhvm guest runvar Date: Fri, 25 Sep 2015 12:37:05 +0100 Message-ID: <1443181028-22705-7-git-send-email-ian.jackson@eu.citrix.com> References: <1443181028-22705-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZfRJW-0007h0-Ec for xen-devel@lists.xenproject.org; Fri, 25 Sep 2015 11:37:18 +0000 In-Reply-To: <1443181028-22705-1-git-send-email-ian.jackson@eu.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: xen-devel@lists.xenproject.org Cc: Robert Ho , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org From: Robert Ho There are not yet any jobs which set this. Signed-off-by: Robert Ho Signed-off-by: Ian Jackson --- v14: Use guest_var_boolean --- ts-debian-hvm-install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index f2fc31b..2c7580c 100755 --- a/ts-debian-hvm-install +++ b/ts-debian-hvm-install @@ -215,6 +215,10 @@ sub prep () { iso_create_empty($ho, $emptyiso, $emptydir); + my $extra_config = ''; + $extra_config .= "nestedhvm=1\n" + if guest_var_boolean($gho,"enable_nestedhvm"); + # If host has >8G free memory, create a guest with 4G memory to catch # any error that triggers cross 4G boundary my $host_freemem_mb = host_get_free_memory($ho); @@ -236,6 +240,7 @@ sub prep () { more_prepareguest_hvm($ho,$gho, $ram_mb, $disk_mb, OnReboot => 'preserve', Bios => $r{bios}, + ExtraConfig => $extra_config, PostImageHook => sub { my $cmds = iso_copy_content_from_image($gho, $newiso); target_cmd_root($ho, $cmds, $isotimeout); -- 1.7.10.4