Skip to contentSkip to conversation

Update xl.cfg files for Xen 4.10 support

PATCH In review Andrew Cooper 3 participants 5 messages Oct 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update xl.cfg files for Xen 4.10 support

From 4.10 onwards, the configuration file should use type= in preference to builder/loader. Leave the older options for legacy compatability.

---
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 config/default-hvm.cfg.in | 5 ++++-
 config/default-pv.cfg.in  | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
config/default-hvm.cfg.in +4 -1
index 0de2546..c410eff 100644
@@ -1,5 +1,8 @@
 name="test-@@ENV@@-@@NAME@@@@VARIATION@@"
-builder="hvm"
+
+type="hvm"
+builder="hvm" # Legacy for before Xen 4.10
+
 memory=128
 firmware_override="@@XTFDIR@@/tests/@@NAME@@/test-@@ENV@@-@@NAME@@"
 
config/default-pv.cfg.in +4 -1
index daedf49..921e52a 100644
@@ -1,4 +1,7 @@
 name="test-@@ENV@@-@@NAME@@@@VARIATION@@"
-loader="generic"
+
+type="pv"
+loader="generic" # Legacy for before Xen 4.10
+
 memory=128
 kernel="@@XTFDIR@@/tests/@@NAME@@/test-@@ENV@@-@@NAME@@"
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw
Quoted 17 lines · Andrew Cooper

From 4.10 onwards, the configuration file should use type= in preference to builder/loader. Leave the older options for legacy compatability.

---
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 config/default-hvm.cfg.in | 5 ++++-
 config/default-pv.cfg.in  | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
config/default-hvm.cfg.in +0 -0
index 0de2546..c410eff 100644

config/default-hvm.cfg.in line 4

Quoted 5 lines
config/default-hvm.cfg.in +3 -1
@@ -1,5 +1,8 @@
 name="test-@@ENV@@-@@NAME@@@@VARIATION@@"
-builder="hvm"
+
+type="hvm"
+builder="hvm" # Legacy for before Xen 4.10

Since this examples are only for >= Xen 4.10, does it really make sense to keep the builder option here?

Do we expect people to mix and match example configuration files?

Roger.

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

#2 lore raw
Quoted 26 lines · Roger Pau Monné
Quoted 17 lines · Andrew Cooper

From 4.10 onwards, the configuration file should use type= in preference to builder/loader. Leave the older options for legacy compatability.

---
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 config/default-hvm.cfg.in | 5 ++++-
 config/default-pv.cfg.in  | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
config/default-hvm.cfg.in +0 -0
index 0de2546..c410eff 100644

config/default-hvm.cfg.in line 4

Quoted 5 lines
config/default-hvm.cfg.in +3 -1
@@ -1,5 +1,8 @@
 name="test-@@ENV@@-@@NAME@@@@VARIATION@@"
-builder="hvm"
+
+type="hvm"
+builder="hvm" # Legacy for before Xen 4.10

Since this examples are only for >= Xen 4.10, does it really make sense to keep the builder option here?

Quoted 1 line

Do we expect people to mix and match example configuration files?

There is only one version of XTF.  It doesn't branch for different versions of Xen, so needs to support them all.

~Andrew

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

Reviewed-by
#3 lore raw
Quoted 27 lines · Andrew Cooper
Quoted 26 lines · Roger Pau Monné
Quoted 17 lines · Andrew Cooper

From 4.10 onwards, the configuration file should use type= in preference to builder/loader. Leave the older options for legacy compatability.

---
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 config/default-hvm.cfg.in | 5 ++++-
 config/default-pv.cfg.in  | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
config/default-hvm.cfg.in +0 -0
index 0de2546..c410eff 100644

config/default-hvm.cfg.in line 4

Quoted 5 lines
config/default-hvm.cfg.in +3 -1
@@ -1,5 +1,8 @@
 name="test-@@ENV@@-@@NAME@@@@VARIATION@@"
-builder="hvm"
+
+type="hvm"
+builder="hvm" # Legacy for before Xen 4.10

Since this examples are only for >= Xen 4.10, does it really make sense to keep the builder option here?

Quoted 4 lines
Quoted 1 line

Do we expect people to mix and match example configuration files?

There is only one version of XTF.  It doesn't branch for different versions of Xen, so needs to support them all.

Oh, I was confused and thought this was a patch to the xl.cfg example files in xen.get, sorry.

Thanks, Roger.

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