Skip to contentSkip to conversation

automation: add SLES 11 SP4 dockerfile

PATCH In review Wei Liu 4 participants 7 messages Jul 17, 2018 – Jul 18, 2018

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 automation: add SLES 11 SP4 dockerfile

---
No OVMF because it requires gcc 4.4 or later.
No seabios because it requires anonymous union initialisation No QEMU upstrea because sed doesn't support -E.

vmcs.c vmx_find_msr and vmx_del_msr build failure in pv shim because the compiler thinks total, substart and subend may be used uninitialised. The compiler doesn't complain while building normal xen though.

Cc Jan Beulich <[email protected]>
Cc Doug Goldstein <[email protected]>
---
 automation/build/suse/sles11sp4.dockerfile | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 automation/build/suse/sles11sp4.dockerfile
automation/build/suse/sles11sp4.dockerfile new file +20 -0
new file mode 100644
index 0000000000..ff69a99afc
@@ -0,0 +1,20 @@
+FROM registry.gitlab.com/xen-project/xen/suse:sles11sp4-base
+LABEL maintainer.name="The Xen Project" \
+      maintainer.email="[email protected]"
+
+ENV USER root
+
+RUN mkdir /build
+WORKDIR /build
+
+# Nothing else is needed -- base image already contain everything.
+
+# Note:
+#
+# SLES11 SP4 runs pre-2.13 glibc, which requires vsyscall support.  Most
+# distros nowadays disable vsyscall. To run this container, the host needs to
+# have vsyscall=emulate in its kernel command line.
+#
+# Due to various issues in SLES11 SP4, you might want to disable building
+# certain components. Known *not bulding* components include OVMF, SEABIOS
+# and upstream QEMU.
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
author
#1 lore raw
Quoted 10 lines · Wei Liu

---
No OVMF because it requires gcc 4.4 or later.
No seabios because it requires anonymous union initialisation No QEMU upstrea because sed doesn't support -E.

vmcs.c vmx_find_msr and vmx_del_msr build failure in pv shim because the compiler thinks total, substart and subend may be used uninitialised. The compiler doesn't complain while building normal xen though.

Also notable is that there is a sles11sp4-base on gitlab now, which is a vanilla installation of SLES 11 SP4 with all the build tools and libraries installed.

This helps separate Xen build specific setup (done in this file) from a vanilla build.

Quoted 37 lines
Cc Jan Beulich <[email protected]>
Cc Doug Goldstein <[email protected]>
---
 automation/build/suse/sles11sp4.dockerfile | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 automation/build/suse/sles11sp4.dockerfile
automation/build/suse/sles11sp4.dockerfile new file +20 -0
new file mode 100644
index 0000000000..ff69a99afc
@@ -0,0 +1,20 @@
+FROM registry.gitlab.com/xen-project/xen/suse:sles11sp4-base
+LABEL maintainer.name="The Xen Project" \
+      maintainer.email="[email protected]"
+
+ENV USER root
+
+RUN mkdir /build
+WORKDIR /build
+
+# Nothing else is needed -- base image already contain everything.
+
+# Note:
+#
+# SLES11 SP4 runs pre-2.13 glibc, which requires vsyscall support.  Most
+# distros nowadays disable vsyscall. To run this container, the host needs to
+# have vsyscall=emulate in its kernel command line.
+#
+# Due to various issues in SLES11 SP4, you might want to disable building
+# certain components. Known *not bulding* components include OVMF, SEABIOS
+# and upstream QEMU.
Signature · 1 line
2.11.0

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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Wei Liu
Quoted 1 line · Wei Liu

Awesome work Wei. Thanks for taking the time and effort to get this done. I'll defer to Jan to confirm that this will hopefully be an effective stand in but you've got my

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

#3 lore raw
In reply to Wei Liu
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 17.07.18 at 22:03, <[email protected]> wrote:

---
No OVMF because it requires gcc 4.4 or later.
No seabios because it requires anonymous union initialisation

This is unfortunate, and could perhaps be worked around by using the alternative newer gcc-5 (iirc) that is being provided. Otoh we're not so much after the build checking of 3rd party components here anyway.

Quoted 1 line

No QEMU upstrea because sed doesn't support -E.

This has been fixed in qemu quite some time ago (6809df1df0).

Quoted 4 lines

vmcs.c vmx_find_msr and vmx_del_msr build failure in pv shim because the compiler thinks total, substart and subend may be used uninitialised. The compiler doesn't complain while building normal xen though.

A patch for this was already sent, but I mean to work out whether instead some CFLAGS issue exists.

Quoted 37 lines
Cc Jan Beulich <[email protected]>
Cc Doug Goldstein <[email protected]>
---
 automation/build/suse/sles11sp4.dockerfile | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 automation/build/suse/sles11sp4.dockerfile
automation/build/suse/sles11sp4.dockerfile new file +15 -0
new file mode 100644
index 0000000000..ff69a99afc
@@ -0,0 +1,20 @@
+FROM registry.gitlab.com/xen-project/xen/suse:sles11sp4-base
+LABEL maintainer.name="The Xen Project" \
+      maintainer.email="[email protected]"
+
+ENV USER root
+
+RUN mkdir /build
+WORKDIR /build
+
+# Nothing else is needed -- base image already contain everything.
+
+# Note:
+#
+# SLES11 SP4 runs pre-2.13 glibc, which requires vsyscall support.  Most
+# distros nowadays disable vsyscall. To run this container, the host needs 

to

automation/build/suse/sles11sp4.dockerfile new file +5 -0
+# have vsyscall=emulate in its kernel command line.
+#
+# Due to various issues in SLES11 SP4, you might want to disable building
+# certain components. Known *not bulding* components include OVMF, SEABIOS
+# and upstream QEMU.
Signature · 1 line
2.11.0

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

author
#4 lore raw
Quoted 10 lines · Jan Beulich
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 17.07.18 at 22:03, <[email protected]> wrote:

---
No OVMF because it requires gcc 4.4 or later.
No seabios because it requires anonymous union initialisation

This is unfortunate, and could perhaps be worked around by using the alternative newer gcc-5 (iirc) that is being provided. Otoh we're not so much after the build checking of 3rd party components here anyway.

I'm not going to do special arrangement for that in CI, but I will try to put the alternative compiler in so that developers can try it out. The main purpose of this container is to use old compiler in our CI system.

Quoted 3 lines
Quoted 1 line

No QEMU upstrea because sed doesn't support -E.

This has been fixed in qemu quite some time ago (6809df1df0).

Right. I suppose once we update qemu-xen, it should build fine.

Quoted 9 lines
Quoted 5 lines

vmcs.c vmx_find_msr and vmx_del_msr build failure in pv shim because the compiler thinks total, substart and subend may be used uninitialised. The compiler doesn't complain while building normal xen though.

A patch for this was already sent, but I mean to work out whether instead some CFLAGS issue exists.

Just saw it.

Wei.

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

#5 lore raw
In reply to Wei Liu
Quoted 1 line · Wei Liu

No OVMF because it requires gcc 4.4 or later.

Fine.

Quoted 1 line

No seabios because it requires anonymous union initialisation

It is required to build Xen like that (with a custom compiler from gcc48.rpm):

test -x "$(type -p gcc)" && CC=$_
test -x "$(type -p gcc-4.8)" && CC=$_

make \
        CC=$CC \
        HOSTCC=$CC \
        xen
make \
        CC=$CC \
        GCC=$CC \
        HOSTCC=$CC \
        HOST_CC=$CC \
        BUILD_CC=$CC \
        tools stubdom
Quoted 1 line

No QEMU upstrea because sed doesn't support -E.

libvirt+QEMU upstream does not support SLE11 anymore due to the requirement for a newer glib2. In case Xen wants to stick with qemu-2.12 for a while, SLE11 could still be tested for fun and education.

Olaf

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

author
#6 lore raw
Quoted 17 lines · Olaf Hering
Quoted 1 line · Wei Liu

No OVMF because it requires gcc 4.4 or later.

Fine.

Quoted 1 line

No seabios because it requires anonymous union initialisation

It is required to build Xen like that (with a custom compiler from gcc48.rpm):

test -x "$(type -p gcc)" && CC=$_
test -x "$(type -p gcc-4.8)" && CC=$_

make \
        CC=$CC \
        HOSTCC=$CC \
        xen
Quoted 7 lines
make \
        CC=$CC \
        GCC=$CC \
        HOSTCC=$CC \
        HOST_CC=$CC \
        BUILD_CC=$CC \
        tools stubdom

I just pushed a new base image which contained gcc-4.8. Individual developers can use the runes here if they care to build seabios.

Further adjustment to the build script is needed if we really care about building seabios in gitlab CI. But we don't even know if we can run this container on gitlab CI yet. :-)

Quoted 6 lines
Quoted 2 lines

No QEMU upstrea because sed doesn't support -E.

libvirt+QEMU upstream does not support SLE11 anymore due to the requirement for a newer glib2. In case Xen wants to stick with qemu-2.12 for a while, SLE11 could still be tested for fun and education.

I think the same principle mentioned above applies here as well.

Wei.

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