Skip to contentSkip to conversation

osstest: followup from the PVH toolstack series

PATCH Superseded Roger Pau Monne 2 participants 8 messages Sep 29, 2017 – Oct 3, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover osstest: followup from the PVH toolstack series

Hello,

The two patches in this series modify osstest in order to fix the PVH tests, and also switch HVM guests to use the 'type' option (note that the builder option is kept for compatibility reasons).

Thanks, Roger.

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

#1 lore raw

PATCH 1/2 osstest: fix PVH DomU tests

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

---
Cc: [email protected]

---
 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
#2 lore raw

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

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

Quoted 2 lines

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

What will be the effect of this on old Xen branches ?
I think it might stop the pvh tests from working in those branches.

Ian.

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

#3 lore raw

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

Quoted 5 lines · Ian Jackson

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

Quoted 2 lines

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

What will be the effect of this on old Xen branches ?

PVHv1 is also removed from the Linux kernel, so it's just a matter of time until those start failing, if they are not failing already.

Quoted 1 line

I think it might stop the pvh tests from working in those branches.

This change will just turn the PVH tests into PV test on old branches, because type=pvh will be ignored and the guest is going to boot in PV mode.

Roger.

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

#4 lore raw

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

Roger Pau Monné writes ("Re: [PATCH 1/2] osstest: fix PVH DomU tests"):

Quoted 6 lines · Ian Jackson
Quoted 1 line

I think it might stop the pvh tests from working in those branches.

This change will just turn the PVH tests into PV test on old branches, because type=pvh will be ignored and the guest is going to boot in PV mode.

That's not brilliant. Can we make this change conditional and/or drop the pvh tests for older branches ?

Ian.

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

#5 lore raw

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

Quoted 10 lines · Ian Jackson

Roger Pau Monné writes ("Re: [PATCH 1/2] osstest: fix PVH DomU tests"):

Quoted 6 lines · Ian Jackson
Quoted 1 line

I think it might stop the pvh tests from working in those branches.

This change will just turn the PVH tests into PV test on old branches, because type=pvh will be ignored and the guest is going to boot in PV mode.

That's not brilliant. Can we make this change conditional and/or drop the pvh tests for older branches ?

IMHO we should drop the PVH tests for older branches (ie: PVHv1 tests). This has already been removed from current Linux and Xen, so it makes no sense to continue testing them.

Thanks, Roger.

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

#6 lore raw

PATCH 2/2 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
Acked-by on v1 2/2
#7 lore raw

Re: [PATCH 2/2] osstest: use type='hvm' for HVM guests

Roger Pau Monne writes ("[PATCH 2/2] osstest: use type='hvm' for HVM guests"):

Quoted 3 lines

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

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