]> 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 Feb 2015 15:12:28 +0000 (15:12 +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 829c3e9f34939156d374b693050565bde68d75a0..de4324a29123db6895b9fd7f45f31171989e5663 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 () {
@@ -171,7 +173,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");
 }