Skip to contentSkip to conversation

ts-windows-install: Honour memsize and disksize guest runvars

PATCH In review Ian Jackson 2 participants 5 messages Jun 16, 2017 – Jun 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ts-windows-install: Honour memsize and disksize guest runvars

---
 ts-windows-install | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
ts-windows-install +6 -4
index 5ee127d..4dc8f2a 100755
@@ -27,17 +27,19 @@ our ($whhost) = @ARGV;
 $whhost ||= 'host';
 our $ho= selecthost($whhost);
 
+our $gn = 'win';
 our $gho;
 
-our $ram_mb=   1536;
-our $disk_mb= 32000;
-
 our $guesthost= 'win.guest.osstest';
 
 sub prep () {
     target_install_packages_norec($ho, qw(lvm2 rsync));
 
-    $gho= prepareguest($ho, 'win', $guesthost, 8936,
+    my $ghot = guest_template($gn);
+    my $ram_mb = guest_var($ghot, 'memsize', 1536);
+    my $disk_mb = guest_var($ghot, 'disksize', 32000);
+
+    $gho= prepareguest($ho, $gn, $guesthost, 8936,
                        $disk_mb + 1,
                        300);
 
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

PATCH 2/3 make-flight: do_hvm_win_test_one: honour extra args as runvars

No functional change as nothing passes extra args right now

---
 make-flight | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
make-flight +3 -1
index 11cc01e..75afdb9 100755
@@ -320,6 +320,7 @@ do_hvm_win_test_one () {
   local testidpart=$1
   local isobase=$2
   local guestarch=$3
+  shift;shift;shift
 
   if [ $xenarch != amd64 ]; then
     return
@@ -338,7 +339,8 @@ do_hvm_win_test_one () {
             test-win xl $xenarch $dom0arch $qemuu_runvar \
             win_image=$iso \
             win_acpi_shutdown=true \
-            all_hostflags=$most_hostflags,hvm
+            all_hostflags=$most_hostflags,hvm \
+            "$@"
 }
 
 do_hvm_win7_x64_tests () {
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw

PATCH 3/3 make-flight: Provide Windows 10 and Windows Server 16 guests with 3.5G of RAM

In reply to Ian Jackson

Paul advises that 4G may be needed, but we have some 8G hosts in various places. If this is not sufficient in practice, we should consider restricting the test to bigger hosts.

CC Paul Durrant <[email protected]>
CC Wei Liu <[email protected]>
CC Dario Faggioli <[email protected]>
---
 make-flight | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
make-flight +2 -2
index 75afdb9..db124fe 100755
@@ -348,8 +348,8 @@ do_hvm_win7_x64_tests () {
 }
 
 do_hvm_win_2017_tests () {
-  do_hvm_win_test_one ws16 ws16 amd64
-  do_hvm_win_test_one win10 win10v1703 i386
+  do_hvm_win_test_one ws16  ws16       amd64 guests_memsize=3584
+  do_hvm_win_test_one win10 win10v1703 i386  guests_memsize=3584
 }
 
 do_hvm_debian_nested_tests () {
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by on v1 3/3
#3 lore raw

Re: [OSSTEST PATCH 3/3] make-flight: Provide Windows 10 and Windows Server 16 guests with 3.5G of RAM

Quoted 10 lines

-----Original Message-----
From: Ian Jackson [mailto:[email protected]]
Sent: 16 June 2017 18:34
To: [email protected]
Cc: Ian Jackson <[email protected]>; Ian Jackson <[email protected]>; Paul Durrant <[email protected]>; Wei Liu <[email protected]>; Dario Faggioli <[email protected]>
Subject: [OSSTEST PATCH 3/3] make-flight: Provide Windows 10 and Windows Server 16 guests with 3.5G of RAM

Quoted 8 lines

Paul advises that 4G may be needed, but we have some 8G hosts in various places. If this is not sufficient in practice, we should consider restricting the test to bigger hosts.

CC Paul Durrant <[email protected]>
CC Wei Liu <[email protected]>
CC Dario Faggioli <[email protected]>
Quoted 20 lines
---
 make-flight | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
make-flight +2 -3
index 75afdb9..db124fe 100755
@@ -348,8 +348,8 @@ do_hvm_win7_x64_tests () {
 }
 
 do_hvm_win_2017_tests () {
-  do_hvm_win_test_one ws16 ws16 amd64
-  do_hvm_win_test_one win10 win10v1703 i386
+  do_hvm_win_test_one ws16  ws16       amd64 guests_memsize=3584
+  do_hvm_win_test_one win10 win10v1703 i386  guests_memsize=3584
 }
 
 do_hvm_debian_nested_tests () {
--
Quoted 1 line

2.1.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Reviewed-by on v1 1/3
#4 lore raw
In reply to Ian Jackson
Quoted 10 lines

-----Original Message-----
From: Ian Jackson [mailto:[email protected]]
Sent: 16 June 2017 18:34
To: [email protected]
Cc: Ian Jackson <[email protected]>; Ian Jackson <[email protected]>; Wei Liu <[email protected]>; Paul Durrant <[email protected]>
Subject: [OSSTEST PATCH 1/3] ts-windows-install: Honour memsize and disksize guest runvars

Quoted 3 lines
Quoted 33 lines
---
 ts-windows-install | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
ts-windows-install +6 -5
index 5ee127d..4dc8f2a 100755
@@ -27,17 +27,19 @@ our ($whhost) = @ARGV;
 $whhost ||= 'host';
 our $ho= selecthost($whhost);
 
+our $gn = 'win';
 our $gho;
 
-our $ram_mb=   1536;
-our $disk_mb= 32000;
-
 our $guesthost= 'win.guest.osstest';
 
 sub prep () {
     target_install_packages_norec($ho, qw(lvm2 rsync));
 
-    $gho= prepareguest($ho, 'win', $guesthost, 8936,
+    my $ghot = guest_template($gn);
+    my $ram_mb = guest_var($ghot, 'memsize', 1536);
+    my $disk_mb = guest_var($ghot, 'disksize', 32000);
+
+    $gho= prepareguest($ho, $gn, $guesthost, 8936,
                        $disk_mb + 1,
                        300);
 
--
Quoted 1 line

2.1.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel