Skip to contentSkip to conversation

osstest: followup from the PVH toolstack series

PATCH In review Roger Pau Monne 2 participants 6 messages Oct 3, 2017

lore
Share & tools
lore
#0 lore raw

v2 cover osstest: followup from the PVH toolstack series

Hello,

The patches in this series modify osstest in order to fix the PVH tests, switch HVM guests to use the 'type' option (note that the builder option is kept for compatibility reasons) and remove the PVH tests from branches older than Xen 4.10.

Thanks, Roger.

Roger Pau Monne (3):
osstest: fix PVH DomU tests
osstest: use type='hvm' for HVM guests
osstest: limit PVH tests to Xen >= 4.10

 Osstest/TestSupport.pm | 1 +
 ts-debian-fixup        | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
Signature · 7 lines
2.13.5 (Apple Git-94)


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

PATCH v2 1/3 osstest: fix PVH DomU tests

The pvh=1 xl option was removed, so switch the PVH tests to use type='pvh' instead.

On older branches still supporting PVHv1 (and the 'pvh' xl option), this change will turn the PVH tests into PV tests). A followup change will remove the PVH tests from those branches, since PVHv1 has already been removed from upstream Linux and Xen.

---
Cc: [email protected]
---
Changes since v1:
- Expand commit message.

---
 ts-debian-fixup | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ts-debian-fixup +2 -2
index 571b2509..80c35da5 100755
@@ -136,8 +136,8 @@ sub otherfixupcfg () {
 
     my $pvh = guest_var($gho,'pvh',undef);
     if ($pvh) {
-	$cfg =~ s/^pvh\b.*//mg;
-	$cfg .= "\npvh=$pvh\n";
+	$cfg =~ s/^type=\b.*//mg;
+	$cfg .= "\ntype='pvh'\n";
     }
 
     # PCI passthrough
Signature · 7 lines
2.13.5 (Apple Git-94)


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v2 1/3
#2 lore raw

Re: [PATCH v2 1/3] osstest: fix PVH DomU tests

Roger Pau Monne writes ("[PATCH v2 1/3] osstest: fix PVH DomU tests"):

Quoted 9 lines

The pvh=1 xl option was removed, so switch the PVH tests to use type='pvh' instead.

On older branches still supporting PVHv1 (and the 'pvh' xl option), this change will turn the PVH tests into PV tests). A followup change will remove the PVH tests from those branches, since PVHv1 has already been removed from upstream Linux and Xen.

Although, I think I will swap these commits over for the sake of propriety.

Ian.

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

#3 lore raw

PATCH v2 2/3 osstest: use type='hvm' for HVM guests

In reply to Roger Pau Monne

The previous builder='hvm' is also kept for compatibility with older Xen releases. Note that the type option is ignored in previous Xen versions.

---
Cc: [email protected]

---
 Osstest/TestSupport.pm | 1 +
 1 file changed, 1 insertion(+)
Osstest/TestSupport.pm +1 -0
index a5cca391..66625e6f 100644
@@ -2089,6 +2089,7 @@ sub more_prepareguest_hvm ($$$$;@) {
     my $cfg = <<END;
 $kernel
 builder     = 'hvm'
+type        = 'hvm'
 #
 disk        = [
 		$disks
Signature · 7 lines
2.13.5 (Apple Git-94)


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

PATCH v2 3/3 osstest: limit PVH tests to Xen >= 4.10

In reply to Roger Pau Monne

Older Xen versions don't support the 'type' xl option used to create a PVHv2 guest.

---
Cc: Ian Jackson <[email protected]>
---
Changes since v1:
- New in this version.

---
 make-flight | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
make-flight +2 -6
index db124fe7..df8f7649 100755
@@ -719,14 +719,10 @@ test_matrix_do_one () {
   *)               test_xend=n ;;
   esac
 
-  # PVH tests for versions >= 4.5 only
+  # PVH tests for versions >= 4.10 only
   case "$xenbranch" in
   xen-3.*-testing) test_pvh=n ;;
-  xen-4.0-testing) test_pvh=n ;;
-  xen-4.1-testing) test_pvh=n ;;
-  xen-4.2-testing) test_pvh=n ;;
-  xen-4.3-testing) test_pvh=n ;;
-  xen-4.4-testing) test_pvh=n ;;
+  xen-4.?-testing) test_pvh=n ;;
   *)               test_pvh=y ;;
   esac
 
Signature · 7 lines
2.13.5 (Apple Git-94)


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