xen-tools: Load xen related kernel modules during system boot
PATCH v3 1/2 xen-tools: Load xen related kernel modules during system boot
This patch changes the location of xen.conf file, that contains list of kernel modules to be loaded during system boot, to "${nonarch_libdir}". This is done by removing '--with-systemd-modules-load=' flag from EXTRA_OECONF variable.
Previous path based on "${systemd_unitdir}" was not considered by default by systemd-modules-load.service.
--- recipes-extended/xen/xen-tools.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
recipes-extended/xen/xen-tools.inc +1 -2
@@ -653,10 +653,10 @@ FILES:${PN}-xm = "\ " FILES:${PN}-xencommons += "\ + ${nonarch_libdir}/modules-load.d/xen.conf \ ${sysconfdir}/default/xencommons \ ${sysconfdir}/init.d/xencommons \ ${sysconfdir}/xen/scripts/launch-xenstore \ - ${systemd_unitdir}/modules-load.d/xen.conf \ ${systemd_unitdir}/system/proc-xen.mount \ ${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service \ ${systemd_unitdir}/system/xenconsoled.service \
@@ -744,7 +744,6 @@ SYSTEMD_SERVICE:${PN}-xendomains = "xendomains.service" EXTRA_OECONF += " \ --with-systemd=${systemd_unitdir}/system \ - --with-systemd-modules-load=${systemd_unitdir}/modules-load.d \ --with-initddir=${INIT_D_DIR} \ --with-sysconfig-leaf-dir=default \ --with-system-qemu=${bindir}/qemu-system-i386 \
--
2.17.1
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
PATCH v3 2/2 xen: Clear TUNE_CCARGS for Xen build for aarch64 machines
Xen build may fail for arm machines that have enabled extra flags, that can be enabled only for specific architecture version, e.g. armv8-2a.
--- recipes-extended/xen/xen-hypervisor.inc | 4 ++++ 1 file changed, 4 insertions(+)
recipes-extended/xen/xen-hypervisor.inc +4 -0
@@ -103,3 +103,7 @@ CROSS_CURSES_LIB += "-L${STAGING_LIBDIR_NATIVE}" # Specify the root dir of the .config file for do_menuconfig and do_diffconfig # tasks KCONFIG_CONFIG_ROOTDIR = "${S}/xen" + +# Xen is setting all CC flags on its own. Make sure that they are not modified +# for aarch64, e.g. with architecture-specific optimizations. +TUNE_CCARGS:aarch64=""
--
2.17.1
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Re: [meta-virtualization] [PATCH v3 2/2] xen: Clear TUNE_CCARGS for Xen build for aarch64 machines
Hi Kamil,
Quoted 6 lines · Kamil Dziezyk via lists.yoctoproject.org
Xen build may fail for arm machines that have enabled extra flags, that can be enabled only for specific architecture version, e.g. armv8-2a.
Signed-off-by Kamil Dziezyk <[email protected]>
Cheers
Bertrand
Quoted 21 lines
---
recipes-extended/xen/xen-hypervisor.inc | 4 ++++1 file changed, 4 insertions(+)recipes-extended/xen/xen-hypervisor.inc +0
-0@@ -103,3 +103,7 @@ CROSS_CURSES_LIB += "-L${STAGING_LIBDIR_NATIVE}" # Specify the root dir of the .config file for do_menuconfig and do_diffconfig # tasks
KCONFIG_CONFIG_ROOTDIR= "${S}/xen"recipes-extended/xen/xen-hypervisor.inc +4
-1+ +# Xen is setting all CC flags on its own. Make sure that they are not modified +# for aarch64, e.g. with architecture-specific optimizations. +TUNE_CCARGS:aarch64="" --2.17.1
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Quoted 8 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7000): https://lists.yoctoproject.org/g/meta-virtualization/message/7000
Mute This Topic: https://lists.yoctoproject.org/mt/88394702/3619089
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Christopher Clark
Acked-byRe: [meta-virtualization] [PATCH v3 2/2] xen: Clear TUNE_CCARGS for Xen build for aarch64 machines
Quoted 5 lines · Bertrand Marquis
Hi Kamil,
Quoted 1 line
On 13 Jan 2022, at 11:30, Kamil Dziezyk via lists.yoctoproject.org
Quoted 1 line · <[email protected]> wrote:
Quoted 8 lines
Quoted 2 lines
Xen build may fail for arm machines that have enabled extra flags, that can be enabled only for specific architecture version, e.g.
armv8-2a.
Quoted 2 lines
Signed-off-by Kamil Dziezyk <[email protected]>Reviewed-by Bertrand Marquis <[email protected]>
Christopher
Quoted 49 lines
Cheers
BertrandReview
Quoted 5 lines
---
recipes-extended/xen/xen-hypervisor.inc | 4 ++++1 file changed, 4 insertions(+)(quoted diff) +0
-0b/recipes-extended/xen/xen-hypervisor.inc
recipes-extended/xen/xen-hypervisor.inc CROSS_CURSES_LIB += "-L${STAGING_LIBDIR_NATIVE}" · line 103
Quoted 5 lines
index cffd491..81e361f 100644
recipes-extended/xen/xen-hypervisor.inc +0
-0@@ -103,3 +103,7 @@ CROSS_CURSES_LIB += "-L${STAGING_LIBDIR_NATIVE}" # Specify the root dir of the .config file for do_menuconfig and
do_diffconfigrecipes-extended/xen/xen-hypervisor.inc
Quoted 4 lines
recipes-extended/xen/xen-hypervisor.inc +0
-0# tasks
KCONFIG_CONFIG_ROOTDIR= "${S}/xen"recipes-extended/xen/xen-hypervisor.inc +2
-0+ +# Xen is setting all CC flags on its own. Make sure that they are notmodified
Quoted 6 lines
recipes-extended/xen/xen-hypervisor.inc +2
-1+# for aarch64, e.g. with architecture-specific optimizations. +TUNE_CCARGS:aarch64="" --2.17.1
IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Quoted 4 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#7000):https://lists.yoctoproject.org/g/meta-virtualization/message/7000
Quoted 3 lines
Mute This Topic: https://lists.yoctoproject.org/mt/88394702/3619089
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsubQuoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
merged.
Bruce
In message: [meta-virtualization] [PATCH v3 1/2] xen-tools: Load xen related kernel modules during system boot
Quoted 42 lines · on 13/01/2022 Kamil Dziezyk wrote:
This patch changes the location of xen.conf file, that contains list of kernel modules to be loaded during system boot, to "${nonarch_libdir}". This is done by removing '--with-systemd-modules-load=' flag from
EXTRA_OECONFvariable.Previous path based on "${systemd_unitdir}" was not considered by default by systemd-modules-load.service.
Signed-off-by Kamil Dziezyk <[email protected]>--- recipes-extended/xen/xen-tools.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)recipes-extended/xen/xen-tools.inc +1
-3@@ -653,10 +653,10 @@ FILES:${PN}-xm = "\ " FILES:${PN}-xencommons += "\ + ${nonarch_libdir}/modules-load.d/xen.conf \ ${sysconfdir}/default/xencommons \ ${sysconfdir}/init.d/xencommons \ ${sysconfdir}/xen/scripts/launch-xenstore \ - ${systemd_unitdir}/modules-load.d/xen.conf \ ${systemd_unitdir}/system/proc-xen.mount \ ${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service \ ${systemd_unitdir}/system/xenconsoled.service \@@ -744,7 +744,6 @@ SYSTEMD_SERVICE:${PN}-xendomains = "xendomains.service" EXTRA_OECONF += " \ --with-systemd=${systemd_unitdir}/system \ - --with-systemd-modules-load=${systemd_unitdir}/modules-load.d \ --with-initddir=${INIT_D_DIR} \ --with-sysconfig-leaf-dir=default \ --with-system-qemu=${bindir}/qemu-system-i386 \ --2.17.1
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Quoted 8 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6999): https://lists.yoctoproject.org/g/meta-virtualization/message/6999
Mute This Topic: https://lists.yoctoproject.org/mt/88394698/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
In message: [meta-virtualization] [PATCH v3 2/2] xen: Clear TUNE_CCARGS for Xen build for aarch64 machines
Quoted 34 lines · on 13/01/2022 Kamil Dziezyk wrote:
Xen build may fail for arm machines that have enabled extra flags, that can be enabled only for specific architecture version, e.g. armv8-2a.
Signed-off-by Kamil Dziezyk <[email protected]>--- recipes-extended/xen/xen-hypervisor.inc | 4 ++++ 1 file changed, 4 insertions(+)recipes-extended/xen/xen-hypervisor.inc +4
-1@@ -103,3 +103,7 @@ CROSS_CURSES_LIB += "-L${STAGING_LIBDIR_NATIVE}" # Specify the root dir of the .config file for do_menuconfig and do_diffconfig # tasks KCONFIG_CONFIG_ROOTDIR = "${S}/xen" + +# Xen is setting all CC flags on its own. Make sure that they are not modified +# for aarch64, e.g. with architecture-specific optimizations. +TUNE_CCARGS:aarch64="" --2.17.1
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7000): https://lists.yoctoproject.org/g/meta-virtualization/message/7000
Mute This Topic: https://lists.yoctoproject.org/mt/88394702/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hello Bruce,
Thanks for getting this merged.
We consider these patches as bug fixing and in this case is it possible to have them backported (cherry picked) to honister branch?
Cheers,
--
Diego Sueiro
Quoted 69 lines
-----Original Message-----
From: [email protected] <meta- [email protected]> On Behalf Of Bruce Ashfield via lists.yoctoproject.org
Sent: 19 January 2022 03:44
To: Kamil Dzieżyk <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [meta-virtualization] [PATCH v3 1/2] xen-tools: Load xen related kernel modules during system bootmerged.
Bruce
In message: [meta-virtualization] [PATCH v3 1/2] xen-tools: Load xen related
Quoted 3 lines · kernel modules during system boot on 13/01/2022 Kamil Dziezyk wrote:
This patch changes the location of xen.conf file, that contains list of kernel modules to be loaded during system boot, to "${nonarch_libdir}". This is done by removing '--with-systemd-modules-
load=' flag from
EXTRA_OECONFvariable.Quoted 34 lines
Previous path based on "${systemd_unitdir}" was not considered by default by systemd-modules-load.service.
Signed-off-by Kamil Dziezyk <[email protected]>--- recipes-extended/xen/xen-tools.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)recipes-extended/xen/xen-tools.inc +1
-1@@ -653,10 +653,10 @@ FILES:${PN}-xm = "\ " FILES:${PN}-xencommons += "\ + ${nonarch_libdir}/modules-load.d/xen.conf \ ${sysconfdir}/default/xencommons \ ${sysconfdir}/init.d/xencommons \ ${sysconfdir}/xen/scripts/launch-xenstore \ - ${systemd_unitdir}/modules-load.d/xen.conf \ ${systemd_unitdir}/system/proc-xen.mount \ ${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service \ ${systemd_unitdir}/system/xenconsoled.service \ @@ -744,7 +744,6@@ SYSTEMD_SERVICE:${PN}-xendomains = "xendomains.service"
EXTRA_OECONF += " \ --with-systemd=${systemd_unitdir}/system \ - --with-systemd-modules-load=${systemd_unitdir}/modules-load.d \ --with-initddir=${INIT_D_DIR} \ --with-sysconfig-leaf-dir=default \ --with-system-qemu=${bindir}/qemu-system-i386 \Quoted 4 lines
--
2.17.1IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Quoted 3 lines
Quoted 7 lines · Diego Sueiro
Hello Bruce,
Thanks for getting this merged.
We consider these patches as bug fixing and in this case is it possible to have them backported (cherry picked) to honister branch?
Agreed. they are bug fixes, so I've done the cherry pick to honister.
Bruce
Quoted 75 lines
Cheers,
--
Diego SueiroQuoted 69 lines
-----Original Message-----
From: [email protected] <meta- [email protected]> On Behalf Of Bruce Ashfield via lists.yoctoproject.org
Sent: 19 January 2022 03:44
To: Kamil Dzieżyk <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [meta-virtualization] [PATCH v3 1/2] xen-tools: Load xen related kernel modules during system bootmerged.
Bruce
In message: [meta-virtualization] [PATCH v3 1/2] xen-tools: Load xen related
Quoted 3 lines · kernel modules during system boot on 13/01/2022 Kamil Dziezyk wrote:
This patch changes the location of xen.conf file, that contains list of kernel modules to be loaded during system boot, to "${nonarch_libdir}". This is done by removing '--with-systemd-modules-
load=' flag from
EXTRA_OECONFvariable.Quoted 34 lines
Previous path based on "${systemd_unitdir}" was not considered by default by systemd-modules-load.service.
Signed-off-by Kamil Dziezyk <[email protected]>--- recipes-extended/xen/xen-tools.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)recipes-extended/xen/xen-tools.inc +1
-1@@ -653,10 +653,10 @@ FILES:${PN}-xm = "\ " FILES:${PN}-xencommons += "\ + ${nonarch_libdir}/modules-load.d/xen.conf \ ${sysconfdir}/default/xencommons \ ${sysconfdir}/init.d/xencommons \ ${sysconfdir}/xen/scripts/launch-xenstore \ - ${systemd_unitdir}/modules-load.d/xen.conf \ ${systemd_unitdir}/system/proc-xen.mount \ ${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service \ ${systemd_unitdir}/system/xenconsoled.service \ @@ -744,7 +744,6@@ SYSTEMD_SERVICE:${PN}-xendomains = "xendomains.service"
EXTRA_OECONF += " \ --with-systemd=${systemd_unitdir}/system \ - --with-systemd-modules-load=${systemd_unitdir}/modules-load.d \ --with-initddir=${INIT_D_DIR} \ --with-sysconfig-leaf-dir=default \ --with-system-qemu=${bindir}/qemu-system-i386 \Quoted 4 lines
--
2.17.1IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Quoted 3 lines
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Hi Kamil,
Quoted 10 lines · Kamil Dziezyk via lists.yoctoproject.org
This patch changes the location of xen.conf file, that contains list of kernel modules to be loaded during system boot, to "${nonarch_libdir}". This is done by removing '--with-systemd-modules-load=' flag from
EXTRA_OECONFvariable.Previous path based on "${systemd_unitdir}" was not considered by default by systemd-modules-load.service.
Signed-off-by Kamil Dziezyk <[email protected]>
Cheers
Bertrand
Quoted 33 lines
---
recipes-extended/xen/xen-tools.inc | 3 +--1 file changed, 1 insertion(+), 2 deletions(-)recipes-extended/xen/xen-tools.inc +1
-3@@ -653,10 +653,10 @@ FILES:${PN}-xm = "\ " FILES:${PN}-xencommons += "\ + ${nonarch_libdir}/modules-load.d/xen.conf \ ${sysconfdir}/default/xencommons \ ${sysconfdir}/init.d/xencommons \ ${sysconfdir}/xen/scripts/launch-xenstore \ - ${systemd_unitdir}/modules-load.d/xen.conf \ ${systemd_unitdir}/system/proc-xen.mount \ ${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service \ ${systemd_unitdir}/system/xenconsoled.service \@@ -744,7 +744,6 @@ SYSTEMD_SERVICE:${PN}-xendomains = "xendomains.service" EXTRA_OECONF += " \ --with-systemd=${systemd_unitdir}/system \ - --with-systemd-modules-load=${systemd_unitdir}/modules-load.d \ --with-initddir=${INIT_D_DIR} \ --with-sysconfig-leaf-dir=default \ --with-system-qemu=${bindir}/qemu-system-i386 \ --2.17.1
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Quoted 8 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6999): https://lists.yoctoproject.org/g/meta-virtualization/message/6999
Mute This Topic: https://lists.yoctoproject.org/mt/88394698/3619089
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Christopher Clark
Acked-byQuoted 12 lines · Bertrand Marquis
Hi Kamil,
Quoted 1 line
On 13 Jan 2022, at 11:30, Kamil Dziezyk via lists.yoctoproject.org
Quoted 2 lines · <[email protected]> wrote:
This patch changes the location of xen.conf file, that contains list of
kernel
Quoted 1 line
modules to be loaded during system boot, to "${nonarch_libdir}". This is
done
Quoted 1 line
by removing '--with-systemd-modules-load=' flag from
EXTRA_OECONFvariable.
Quoted 1 line
Quoted 8 lines
Quoted 1 line
Previous path based on "${systemd_unitdir}" was not considered by
default by
Quoted 3 lines
systemd-modules-load.service.
Signed-off-by Kamil Dziezyk <[email protected]>Reviewed-by Bertrand Marquis <[email protected]>
Christopher
Quoted 60 lines
Cheers
BertrandReview
Quoted 5 lines
---
recipes-extended/xen/xen-tools.inc | 3 +--1 file changed, 1 insertion(+), 2 deletions(-)(quoted diff) +0
-0b/recipes-extended/xen/xen-tools.inc
recipes-extended/xen/xen-tools.inc SYSTEMD_SERVICE:${PN}-xendomains =
Quoted 16 lines
index ca924f4..6e25046 100644
recipes-extended/xen/xen-tools.inc +1
-1@@ -653,10 +653,10 @@ FILES:${PN}-xm = "\ " FILES:${PN}-xencommons += "\ + ${nonarch_libdir}/modules-load.d/xen.conf \ ${sysconfdir}/default/xencommons \ ${sysconfdir}/init.d/xencommons \ ${sysconfdir}/xen/scripts/launch-xenstore \ - ${systemd_unitdir}/modules-load.d/xen.conf \ ${systemd_unitdir}/system/proc-xen.mount \ ${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service \ ${systemd_unitdir}/system/xenconsoled.service \@@ -744,7 +744,6 @@ SYSTEMD_SERVICE:${PN}-xendomains ="xendomains.service"
Quoted 11 lines
recipes-extended/xen/xen-tools.inc +0
-2EXTRA_OECONF += " \ --with-systemd=${systemd_unitdir}/system \ - --with-systemd-modules-load=${systemd_unitdir}/modules-load.d \ --with-initddir=${INIT_D_DIR} \ --with-sysconfig-leaf-dir=default \ --with-system-qemu=${bindir}/qemu-system-i386 \ --2.17.1
IMPORTANT NOTICE: The contents of this email and any attachments are
confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Quoted 4 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#6999):https://lists.yoctoproject.org/g/meta-virtualization/message/6999
Quoted 3 lines
Mute This Topic: https://lists.yoctoproject.org/mt/88394698/3619089
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsubQuoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.