Skip to contentSkip to conversation

OSStest: use CONFIG_X86_GENERIC for 32-bit x86 kernel

PATCH In review Juergen Gross 2 participants 4 messages Dec 7, 2023 – Dec 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OSStest: use CONFIG_X86_GENERIC for 32-bit x86 kernel

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.

---
 ts-kernel-build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
ts-kernel-build +4 -1
index 719b33aa..d9e033c4 100755
@@ -608,7 +608,10 @@ setopt CONFIG_POWER_RESET_XGENE y
 setopt CONFIG_RTC_DRV_XGENE y
 
 case ${XEN_TARGET_ARCH} in
-    x86_32) setopt CONFIG_64BIT n ;;
+    x86_32)
+	setopt CONFIG_64BIT n
+	setopt CONFIG_X86_GENERIC y
+	;;
     x86_64)
 	setopt CONFIG_64BIT y
 	setopt CONFIG_IA32_EMULATION y
Signature · 1 line
2.35.3
#1 lore raw
Quoted 17 lines · Juergen Gross

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.

---
 ts-kernel-build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
ts-kernel-build +0 -0
index 719b33aa..d9e033c4 100755

ts-kernel-build setopt CONFIG_POWER_RESET_XGENE y · line 613

Quoted 7 lines
ts-kernel-build +3 -1
@@ -608,7 +608,10 @@ setopt CONFIG_POWER_RESET_XGENE y
 setopt CONFIG_RTC_DRV_XGENE y
 
 case ${XEN_TARGET_ARCH} in
-    x86_32) setopt CONFIG_64BIT n ;;
+    x86_32)
+	setopt CONFIG_64BIT n
+	setopt CONFIG_X86_GENERIC y

It would be nice if that was working, but XEN_TARGET_ARCH is never set, so the change isn't going to work.

I'm preparing patches to set X86_GENERIC on i386 builds, and fixing some issues.

Thanks,

Signature · 1 line
Anthony PERARD
#2 lore raw
Quoted 20 lines · Anthony PERARD
Quoted 19 lines · Juergen Gross

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.

---
  ts-kernel-build | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
ts-kernel-build +0 -0
index 719b33aa..d9e033c4 100755
@@ -608,7 +608,10 @@ setopt CONFIG_POWER_RESET_XGENE y
  setopt CONFIG_RTC_DRV_XGENE y
 
Quoted 8 lines

ts-kernel-build setopt CONFIG_POWER_RESET_XGENE y · line 613

Quoted 5 lines
ts-kernel-build +3 -1
  case ${XEN_TARGET_ARCH} in
-    x86_32) setopt CONFIG_64BIT n ;;
+    x86_32)
+	setopt CONFIG_64BIT n
+	setopt CONFIG_X86_GENERIC y

It would be nice if that was working, but XEN_TARGET_ARCH is never set, so the change isn't going to work.

Oh, how ... funny? weird? strange?

Quoted 3 lines

I'm preparing patches to set X86_GENERIC on i386 builds, and fixing some issues.

Thanks,

Juergen

#3 lore raw
In reply to Anthony PERARD
Quoted 29 lines · Anthony PERARD
Quoted 17 lines · Juergen Gross

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.

---
  ts-kernel-build | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
ts-kernel-build +0 -0
index 719b33aa..d9e033c4 100755

ts-kernel-build setopt CONFIG_POWER_RESET_XGENE y · line 613

Quoted 7 lines
ts-kernel-build +3 -1
@@ -608,7 +608,10 @@ setopt CONFIG_POWER_RESET_XGENE y
  setopt CONFIG_RTC_DRV_XGENE y
 
  case ${XEN_TARGET_ARCH} in
-    x86_32) setopt CONFIG_64BIT n ;;
+    x86_32)
+	setopt CONFIG_64BIT n
+	setopt CONFIG_X86_GENERIC y

It would be nice if that was working, but XEN_TARGET_ARCH is never set, so the change isn't going to work.

Quoted 2 lines

I'm preparing patches to set X86_GENERIC on i386 builds, and fixing some issues.

Oh, BTW, I think it might be a good idea to add a MAINTAINERS entry in the Xen git tree for OSStest. I was pretty sure you are the one to send patches to, but maybe someone else should receive them?

Juergen