* [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build
@ 2023-12-08 16:02 Anthony PERARD
2023-12-08 16:02 ` [OSSTEST PATCH 1/3] create_build_jobs: Set reset pvops_kconfig_overrides Anthony PERARD
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Anthony PERARD @ 2023-12-08 16:02 UTC (permalink / raw)
To: xen-devel; +Cc: Roger Pau Monne, Anthony PERARD
CONFIG_X86_GENERIC=y and fixes around arch specific config values.
Thanks,
Anthony PERARD (3):
create_build_jobs: Set reset pvops_kconfig_overrides
create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs.
ts-kernel-build: Remove use of $XEN_TARGET_ARCH
mfi-common | 12 ++++++++----
ts-kernel-build | 13 -------------
2 files changed, 8 insertions(+), 17 deletions(-)
--
Anthony PERARD
^ permalink raw reply [flat|nested] 11+ messages in thread* [OSSTEST PATCH 1/3] create_build_jobs: Set reset pvops_kconfig_overrides 2023-12-08 16:02 [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build Anthony PERARD @ 2023-12-08 16:02 ` Anthony PERARD 2023-12-08 16:02 ` [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs Anthony PERARD ` (2 subsequent siblings) 3 siblings, 0 replies; 11+ messages in thread From: Anthony PERARD @ 2023-12-08 16:02 UTC (permalink / raw) To: xen-devel; +Cc: Roger Pau Monne, Anthony PERARD Those two variables, and especially "pvops_kconfig_overrides", aren't reset for the next loop of `for arch ...`. So when "pvops_kconfig_overrides" is for "armhf", it is also set for "arm64" as this is the next "arch" in the loop. Avoid this by setting default values for the variables before the `case` command. This changes Linux arm64 builds which will not have "CONFIG_EXT4_FS=y" anymore, but should get "CONFIG_EXT4_FS=m" instead from `ts-kernel-build`. But resulting build still have "CONFIG_EXT4_FS=y", so no change. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> --- mfi-common | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mfi-common b/mfi-common index 51eb4a9c..1a131c27 100644 --- a/mfi-common +++ b/mfi-common @@ -284,6 +284,11 @@ create_build_jobs () { build_matrix_branch_filter_callback || continue + pvops_kconfig_overrides="" + pvops_kernel=" + tree_linux=$TREE_LINUX + revision_linux=${REVISION_LINUX:-${DEFAULT_REVISION_LINUX}} + " case "$arch" in armhf) case "$xenbranch" in @@ -314,12 +319,6 @@ create_build_jobs () { revision_linux=${REVISION_LINUX_ARM:-${DEFAULT_REVISION_LINUX_ARM}} " ;; - *) - pvops_kernel=" - tree_linux=$TREE_LINUX - revision_linux=${REVISION_LINUX:-${DEFAULT_REVISION_LINUX}} - " - ;; esac case "$arch" in -- Anthony PERARD ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs. 2023-12-08 16:02 [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build Anthony PERARD 2023-12-08 16:02 ` [OSSTEST PATCH 1/3] create_build_jobs: Set reset pvops_kconfig_overrides Anthony PERARD @ 2023-12-08 16:02 ` Anthony PERARD 2023-12-08 16:34 ` Juergen Gross 2023-12-12 8:38 ` Roger Pau Monné 2023-12-08 16:02 ` [OSSTEST PATCH 3/3] ts-kernel-build: Remove use of $XEN_TARGET_ARCH Anthony PERARD 2023-12-12 11:00 ` [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build Roger Pau Monné 3 siblings, 2 replies; 11+ messages in thread From: Anthony PERARD @ 2023-12-08 16:02 UTC (permalink / raw) To: xen-devel; +Cc: Roger Pau Monne, Anthony PERARD, Juergen Gross This is following a failure to build "arch/x86/xen/enlighten.c" in build-i386-pvops jobs with linux 968f35f4ab1c ("Merge tag 'v6.7-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6") in linux-linus branch. Suggested-by: Juergen Gross <jgross@suse.com> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> --- mfi-common | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mfi-common b/mfi-common index 1a131c27..d8d167fd 100644 --- a/mfi-common +++ b/mfi-common @@ -319,6 +319,11 @@ create_build_jobs () { revision_linux=${REVISION_LINUX_ARM:-${DEFAULT_REVISION_LINUX_ARM}} " ;; + i386) + pvops_kconfig_overrides=" + kconfig_override_y=CONFIG_X86_GENERIC + " + ;; esac case "$arch" in -- Anthony PERARD ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs. 2023-12-08 16:02 ` [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs Anthony PERARD @ 2023-12-08 16:34 ` Juergen Gross 2023-12-12 8:38 ` Roger Pau Monné 1 sibling, 0 replies; 11+ messages in thread From: Juergen Gross @ 2023-12-08 16:34 UTC (permalink / raw) To: Anthony PERARD, xen-devel; +Cc: Roger Pau Monne [-- Attachment #1.1.1: Type: text/plain, Size: 1010 bytes --] On 08.12.23 17:02, Anthony PERARD wrote: > This is following a failure to build "arch/x86/xen/enlighten.c" in > build-i386-pvops jobs with linux 968f35f4ab1c ("Merge tag > 'v6.7-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6") > in linux-linus branch. > > Suggested-by: Juergen Gross <jgross@suse.com> > Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Thanks, much appreciated. Juergen (not knowing enough of OSStest to give a "R-b:" for the patch) > --- > mfi-common | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/mfi-common b/mfi-common > index 1a131c27..d8d167fd 100644 > --- a/mfi-common > +++ b/mfi-common > @@ -319,6 +319,11 @@ create_build_jobs () { > revision_linux=${REVISION_LINUX_ARM:-${DEFAULT_REVISION_LINUX_ARM}} > " > ;; > + i386) > + pvops_kconfig_overrides=" > + kconfig_override_y=CONFIG_X86_GENERIC > + " > + ;; > esac > > case "$arch" in [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 3743 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 495 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs. 2023-12-08 16:02 ` [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs Anthony PERARD 2023-12-08 16:34 ` Juergen Gross @ 2023-12-12 8:38 ` Roger Pau Monné 2023-12-12 8:48 ` Juergen Gross 1 sibling, 1 reply; 11+ messages in thread From: Roger Pau Monné @ 2023-12-12 8:38 UTC (permalink / raw) To: Anthony PERARD; +Cc: xen-devel, Juergen Gross On Fri, Dec 08, 2023 at 04:02:25PM +0000, Anthony PERARD wrote: > This is following a failure to build "arch/x86/xen/enlighten.c" in > build-i386-pvops jobs with linux 968f35f4ab1c ("Merge tag > 'v6.7-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6") > in linux-linus branch. Could we expand a bit on why CONFIG_X86_GENERIC is required? It would seem to me that option should have been selected by default already? Thanks, Roger. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs. 2023-12-12 8:38 ` Roger Pau Monné @ 2023-12-12 8:48 ` Juergen Gross 2023-12-12 11:56 ` Anthony PERARD 0 siblings, 1 reply; 11+ messages in thread From: Juergen Gross @ 2023-12-12 8:48 UTC (permalink / raw) To: Roger Pau Monné, Anthony PERARD; +Cc: xen-devel [-- Attachment #1.1.1: Type: text/plain, Size: 827 bytes --] On 12.12.23 09:38, Roger Pau Monné wrote: > On Fri, Dec 08, 2023 at 04:02:25PM +0000, Anthony PERARD wrote: >> This is following a failure to build "arch/x86/xen/enlighten.c" in >> build-i386-pvops jobs with linux 968f35f4ab1c ("Merge tag >> 'v6.7-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6") >> in linux-linus branch. > > Could we expand a bit on why CONFIG_X86_GENERIC is required? It would > seem to me that option should have been selected by default already? No, the kernel's default for 32-bit x86 builds is still using the M686. I guess this is for historical reasons. BTW, there is a kernel patch pending letting CONFIG_XEN depend on more recent cpu types for 32-bit builds. I'm planning to take that patch after OSStest has been changed to no longer use M686. Juergen [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 3743 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 495 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs. 2023-12-12 8:48 ` Juergen Gross @ 2023-12-12 11:56 ` Anthony PERARD 2023-12-12 12:01 ` Juergen Gross 0 siblings, 1 reply; 11+ messages in thread From: Anthony PERARD @ 2023-12-12 11:56 UTC (permalink / raw) To: Juergen Gross, Roger Pau Monné; +Cc: xen-devel On Tue, Dec 12, 2023 at 09:48:46AM +0100, Juergen Gross wrote: > On 12.12.23 09:38, Roger Pau Monné wrote: > > On Fri, Dec 08, 2023 at 04:02:25PM +0000, Anthony PERARD wrote: > > > This is following a failure to build "arch/x86/xen/enlighten.c" in > > > build-i386-pvops jobs with linux 968f35f4ab1c ("Merge tag > > > 'v6.7-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6") > > > in linux-linus branch. > > > > Could we expand a bit on why CONFIG_X86_GENERIC is required? It would > > seem to me that option should have been selected by default already? > > No, the kernel's default for 32-bit x86 builds is still using the M686. > > I guess this is for historical reasons. If I add the following to the patch description, taken from Juergen patch, would that be ok? Today the cpu type for a 32-bit x86 kernel is not specified in the used kernel config, resulting in the M686 to be used. Instead of using the M686 which isn't even a 64-bit cpu (thus not capable to run a Xen guest), use the X86_GENERIC variant which is more appropriate. ref: https://lore.kernel.org/all/20231207080953.27976-1-jgross@suse.com/ I'm not sure what you mean Juergen with "not 64bit cpu -> can't run xen guest", maybe it's because we can only run Xen on 64-bit cpus nowadays, so if we can't run Xen, there's no Xen guest? As for X86_GENERIC, I think I've read the description which says something like distro should enable it, so I guess 32-bit distro would usually have the config enabled, so it make sense that we test with it. Cheers, -- Anthony PERARD ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs. 2023-12-12 11:56 ` Anthony PERARD @ 2023-12-12 12:01 ` Juergen Gross 0 siblings, 0 replies; 11+ messages in thread From: Juergen Gross @ 2023-12-12 12:01 UTC (permalink / raw) To: Anthony PERARD, Roger Pau Monné; +Cc: xen-devel [-- Attachment #1.1.1: Type: text/plain, Size: 1482 bytes --] On 12.12.23 12:56, Anthony PERARD wrote: > On Tue, Dec 12, 2023 at 09:48:46AM +0100, Juergen Gross wrote: >> On 12.12.23 09:38, Roger Pau Monné wrote: >>> On Fri, Dec 08, 2023 at 04:02:25PM +0000, Anthony PERARD wrote: >>>> This is following a failure to build "arch/x86/xen/enlighten.c" in >>>> build-i386-pvops jobs with linux 968f35f4ab1c ("Merge tag >>>> 'v6.7-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6") >>>> in linux-linus branch. >>> >>> Could we expand a bit on why CONFIG_X86_GENERIC is required? It would >>> seem to me that option should have been selected by default already? >> >> No, the kernel's default for 32-bit x86 builds is still using the M686. >> >> I guess this is for historical reasons. > > If I add the following to the patch description, taken from Juergen > patch, would that be ok? > > Today the cpu type for a 32-bit x86 kernel is not specified in the > used kernel config, resulting in the M686 to be used. > > Instead of using the M686 which isn't even a 64-bit cpu (thus not > capable to run a Xen guest), use the X86_GENERIC variant which is > more appropriate. > > ref: https://lore.kernel.org/all/20231207080953.27976-1-jgross@suse.com/ > > I'm not sure what you mean Juergen with "not 64bit cpu -> can't run xen > guest", maybe it's because we can only run Xen on 64-bit cpus nowadays, > so if we can't run Xen, there's no Xen guest? Correct. Juergen [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 3743 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 495 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* [OSSTEST PATCH 3/3] ts-kernel-build: Remove use of $XEN_TARGET_ARCH 2023-12-08 16:02 [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build Anthony PERARD 2023-12-08 16:02 ` [OSSTEST PATCH 1/3] create_build_jobs: Set reset pvops_kconfig_overrides Anthony PERARD 2023-12-08 16:02 ` [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs Anthony PERARD @ 2023-12-08 16:02 ` Anthony PERARD 2023-12-12 11:00 ` [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build Roger Pau Monné 3 siblings, 0 replies; 11+ messages in thread From: Anthony PERARD @ 2023-12-08 16:02 UTC (permalink / raw) To: xen-devel; +Cc: Roger Pau Monne, Anthony PERARD osstest doesn't set $XEN_TARGET_ARCH, and this is a Xen build variable, not a Linux build one. So, this code have been running with an empty $XEN_TARGET_ARCH for a while which mean none of those `setopt` has run in a while. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> --- ts-kernel-build | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ts-kernel-build b/ts-kernel-build index 719b33aa..05da9a7f 100755 --- a/ts-kernel-build +++ b/ts-kernel-build @@ -607,19 +607,6 @@ setopt CONFIG_AHCI_XGENE y setopt CONFIG_POWER_RESET_XGENE y setopt CONFIG_RTC_DRV_XGENE y -case ${XEN_TARGET_ARCH} in - x86_32) setopt CONFIG_64BIT n ;; - x86_64) - setopt CONFIG_64BIT y - setopt CONFIG_IA32_EMULATION y - setopt CONFIG_IA32_AOUT n - setopt CONFIG_CRYPTO_AES_X86_64 n - setopt CONFIG_CRYPTO_SALSA20_X86_64 n - setopt CONFIG_CRYPTO_TWOFISH_X86_64 n - ;; - *) ;; -esac - # Disable components that don't build setopt CONFIG_TEGRA_HOST1X n -- Anthony PERARD ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build 2023-12-08 16:02 [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build Anthony PERARD ` (2 preceding siblings ...) 2023-12-08 16:02 ` [OSSTEST PATCH 3/3] ts-kernel-build: Remove use of $XEN_TARGET_ARCH Anthony PERARD @ 2023-12-12 11:00 ` Roger Pau Monné 2023-12-13 16:34 ` Anthony PERARD 3 siblings, 1 reply; 11+ messages in thread From: Roger Pau Monné @ 2023-12-12 11:00 UTC (permalink / raw) To: Anthony PERARD; +Cc: xen-devel On Fri, Dec 08, 2023 at 04:02:23PM +0000, Anthony PERARD wrote: > CONFIG_X86_GENERIC=y and fixes around arch specific config values. > > Thanks, > > Anthony PERARD (3): > create_build_jobs: Set reset pvops_kconfig_overrides > create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs. > ts-kernel-build: Remove use of $XEN_TARGET_ARCH Acked-by: Roger Pau Monné <roger.pau@citrix.com> I would however request that if possible you expand a bit the description on patch 2 with the additional information provided by Juergen. Thanks, Roger. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build 2023-12-12 11:00 ` [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build Roger Pau Monné @ 2023-12-13 16:34 ` Anthony PERARD 0 siblings, 0 replies; 11+ messages in thread From: Anthony PERARD @ 2023-12-13 16:34 UTC (permalink / raw) To: Roger Pau Monné, Juergen Gross; +Cc: xen-devel On Tue, Dec 12, 2023 at 12:00:12PM +0100, Roger Pau Monné wrote: > On Fri, Dec 08, 2023 at 04:02:23PM +0000, Anthony PERARD wrote: > > CONFIG_X86_GENERIC=y and fixes around arch specific config values. > > > > Thanks, > > > > Anthony PERARD (3): > > create_build_jobs: Set reset pvops_kconfig_overrides > > create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs. > > ts-kernel-build: Remove use of $XEN_TARGET_ARCH > > Acked-by: Roger Pau Monné <roger.pau@citrix.com> > > I would however request that if possible you expand a bit the > description on patch 2 with the additional information provided by > Juergen. Pushed. Thanks, -- Anthony PERARD ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2023-12-13 16:34 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-12-08 16:02 [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build Anthony PERARD 2023-12-08 16:02 ` [OSSTEST PATCH 1/3] create_build_jobs: Set reset pvops_kconfig_overrides Anthony PERARD 2023-12-08 16:02 ` [OSSTEST PATCH 2/3] create_build_jobs: Enable X86_GENERIC for i386 kernel pvops jobs Anthony PERARD 2023-12-08 16:34 ` Juergen Gross 2023-12-12 8:38 ` Roger Pau Monné 2023-12-12 8:48 ` Juergen Gross 2023-12-12 11:56 ` Anthony PERARD 2023-12-12 12:01 ` Juergen Gross 2023-12-08 16:02 ` [OSSTEST PATCH 3/3] ts-kernel-build: Remove use of $XEN_TARGET_ARCH Anthony PERARD 2023-12-12 11:00 ` [OSSTEST PATCH 0/3] Set CONFIG_X86_GENERIC=y for i386 kernel build Roger Pau Monné 2023-12-13 16:34 ` Anthony PERARD
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.