]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
ts-xen-install: install Xen with XSM support if requested
authorWei Liu <wei.liu2@citrix.com>
Mon, 22 Sep 2014 13:13:41 +0000 (14:13 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 20 Mar 2015 11:22:03 +0000 (11:22 +0000)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
Changes in v4:
1. Use "true" instead of "y"

ts-xen-install

index 825bcbe5c38810869c3c177f15602f2e68ab0552..b3f4387f42527084c19f6c7ba2e0bec27792deab 100755 (executable)
@@ -46,6 +46,8 @@ if (@ARGV and $ARGV[0] eq '--check') {
 
 our $ho;
 
+my $enable_xsm = $r{enable_xsm} =~ m/true/ ? 1 : 0;
+
 my %distpath;
 
 sub packages () {
@@ -179,7 +181,8 @@ sub setupboot () {
     }
 
     my $want_kernver = get_runvar('kernel_ver',$r{'kernbuildjob'});
-    debian_boot_setup($ho, $want_kernver, 0, $xenhopt, \%distpath, \@hooks);
+    debian_boot_setup($ho, $want_kernver, $enable_xsm, $xenhopt,
+                      \%distpath, \@hooks);
 
     logm("ready to boot Xen");
 }