-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump up XEN version to 4.18.0 #3534
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,12 +54,7 @@ const qemuConfTemplate = `# This file is automatically generated by domainmgr | |
[machine] | ||
type = "{{.Machine}}" | ||
dump-guest-core = "off" | ||
{{- if .DomainStatus.CPUs }} | ||
cpumask = "{{.DomainStatus.CPUs}}" | ||
{{- end -}} | ||
{{- if .DomainConfig.CPUsPinned }} | ||
cpu-pin = "on" | ||
{{- end -}} | ||
|
||
{{- if eq .Machine "virt" }} | ||
accel = "kvm:tcg" | ||
gic-version = "host" | ||
|
@@ -108,8 +103,6 @@ const qemuConfTemplate = `# This file is automatically generated by domainmgr | |
driver = "intel-iommu" | ||
caching-mode = "on" | ||
{{ end }} | ||
[realtime] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to QEMU's documentation:
Even if mem-lock=off is the default it can make sense to let this option explicit in the config... or at least explain the removal in your commit message There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Essentially, this option enables or disables mlock() call (https://www.man7.org/linux/man-pages/man2/mlock.2.html). This is probably workload-specific. |
||
mlock = "off" | ||
|
||
[chardev "charmonitor"] | ||
backend = "socket" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/stubdom/Makefile b/stubdom/Makefile | ||
index 8cf7131c6a..c6a8051c85 100644 | ||
--- a/stubdom/Makefile | ||
+++ b/stubdom/Makefile | ||
@@ -178,7 +178,7 @@ gmp-$(XEN_TARGET_ARCH): gmp-$(GMP_VERSION).tar.bz2 $(NEWLIB_STAMPFILE) | ||
tar xjf $< | ||
rm $@ -rf || : | ||
mv gmp-$(GMP_VERSION) $@ | ||
- #patch -d $@ -p0 < gmp.patch | ||
+ patch -d $@ -p0 < gmp.patch | ||
cd $@; CPPFLAGS="-isystem $(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/include $(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" CC=$(CC) $(GMPEXT) ./configure --disable-shared --enable-static --disable-fft --without-readline --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf --libdir=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib --build=`gcc -dumpmachine` --host=$(GNU_TARGET_ARCH)-xen-elf | ||
sed -i 's/#define HAVE_OBSTACK_VPRINTF 1/\/\/#define HAVE_OBSTACK_VPRINTF 1/' $@/config.h | ||
touch $@ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- a/tools/Makefile.orig | ||
+++ b/tools/Makefile | ||
@@ -232,7 +232,7 @@ | ||
virtfs='' ; \ | ||
fi ; \ | ||
PKG_CONFIG_PATH=$(XEN_ROOT)/tools/pkg-config$${PKG_CONFIG_PATH:+:$${PKG_CONFIG_PATH}} \ | ||
- $$source/configure --enable-xen --target-list=i386-softmmu \ | ||
+ $$source/configure --enable-xen --target-list=i386-softmmu,$$(uname -m)-softmmu \ | ||
$(QEMU_XEN_ENABLE_DEBUG) \ | ||
$$enable_trace_backend \ | ||
--prefix=$(prefix) \ | ||
@@ -251,7 +251,6 @@ | ||
--mandir=$(LIBEXEC)/share/man \ | ||
--libexecdir=$(LIBEXEC)/libexec \ | ||
--firmwarepath=$(LIBEXEC)/share/qemu-firmware \ | ||
- --disable-kvm \ | ||
--disable-docs \ | ||
--disable-guest-agent \ | ||
--python=$(PYTHON) \ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ ENV BUILD_PKGS_arm64 u-boot-tools | |
RUN eve-alpine-deploy.sh | ||
|
||
ENV XEN_UBOOT_ADDR 0x81000000 | ||
ENV XEN_VERSION 4.15.0 | ||
ENV XEN_VERSION 4.18.0-rc4 | ||
ENV XEN_SOURCE=https://downloads.xenproject.org/release/xen/${XEN_VERSION}/xen-${XEN_VERSION}.tar.gz | ||
|
||
# Download and verify xen | ||
|
@@ -20,7 +20,7 @@ RUN [ -f "$(basename ${XEN_SOURCE})" ] || tar --absolute-names -xz < /xen.tar.gz | |
WORKDIR /xen/xen | ||
COPY *.patch arch /tmp/ | ||
RUN cp /tmp/"$(uname -m)"/*.patch /tmp/ | ||
RUN for p in /tmp/*.patch ; do patch -p1 < "$p" || exit 1 ; done | ||
#RUN for p in /tmp/*.patch ; do patch -p1 < "$p" || exit 1 ; done | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we instead delete the content of the patch directories? Or will we need some of them? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We still need them, but it's just a temporary workaround to avoid applying the not-yet-ported patches. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (it should be converted to a draft PR) |
||
RUN chmod +x scripts/* || : | ||
|
||
RUN make defconfig && \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these being removed? I think it will affect the unit tests, so you need to update them as well (same for the realtime config).... the removal reason should also be explained in the commit message...
Edit: I see... you didn't port @OhmSpectator patches yet...