Skip to contentSkip to conversation

x86: Don't allow HVM alongside PV_SHIM_EXCLUSIVE

PATCH In review Alejandro Vallejo 3 participants 4 messages Jul 18, 2025 – Jul 21, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Don't allow HVM alongside PV_SHIM_EXCLUSIVE

Otherwise compile-time errors ensue. It's a nonsensical configuration, but it's supriously triggered in randconfig jobs.

Fixes 8b5b49ceb3d9("x86: don't include domctl and alike in shim-excl...")
---
 xen/arch/x86/hvm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
xen/arch/x86/hvm/Kconfig +1 -0
index b903764bda..f57a87bca3 100644
@@ -1,6 +1,7 @@
 menuconfig HVM
 	bool "HVM support"
 	default !PV_SHIM
+	depends on !PV_SHIM_EXCLUSIVE
 	select COMPAT
 	select IOREQ_SERVER
 	select MEM_ACCESS_ALWAYS_ON

base-commit: 6efafbf13351cd4ca0b01407a27570a43bc9f15f

Signature · 1 line
2.43.0
#1 lore raw
Quoted 14 lines · Alejandro Vallejo

Otherwise compile-time errors ensue. It's a nonsensical configuration, but it's supriously triggered in randconfig jobs.

Fixes 8b5b49ceb3d9("x86: don't include domctl and alike in shim-excl...")
---
 xen/arch/x86/hvm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
xen/arch/x86/hvm/Kconfig +0 -0
index b903764bda..f57a87bca3 100644

xen/arch/x86/hvm/Kconfig line 7

Quoted 7 lines
xen/arch/x86/hvm/Kconfig +1 -0
@@ -1,6 +1,7 @@
 menuconfig HVM
 	bool "HVM support"
 	default !PV_SHIM
+	depends on !PV_SHIM_EXCLUSIVE
 	select COMPAT
 	select IOREQ_SERVER
 	select MEM_ACCESS_ALWAYS_ON

I deeply regret not nacking this originally and blocking the patch you listed as fixed.

This depends was explicitly reverted in 568f806cba4c because it breaks a lot of things, notably make allyesconfig.

We're going to need to find a different way to fix RANDCONFIG.

~Andrew

#2 lore raw
Quoted 26 lines · Andrew Cooper
Quoted 14 lines · Alejandro Vallejo

Otherwise compile-time errors ensue. It's a nonsensical configuration, but it's supriously triggered in randconfig jobs.

Fixes 8b5b49ceb3d9("x86: don't include domctl and alike in shim-excl...")
---
 xen/arch/x86/hvm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
xen/arch/x86/hvm/Kconfig +0 -0
index b903764bda..f57a87bca3 100644

xen/arch/x86/hvm/Kconfig line 7

Quoted 7 lines
xen/arch/x86/hvm/Kconfig +1 -0
@@ -1,6 +1,7 @@
 menuconfig HVM
 	bool "HVM support"
 	default !PV_SHIM
+	depends on !PV_SHIM_EXCLUSIVE
 	select COMPAT
 	select IOREQ_SERVER
 	select MEM_ACCESS_ALWAYS_ON

I deeply regret not nacking this originally and blocking the patch you listed as fixed.

Quoted 6 lines

This depends was explicitly reverted in 568f806cba4c because it breaks a lot of things, notably make allyesconfig.

We're going to need to find a different way to fix RANDCONFIG.

~Andrew

It can be done the other way around. PV_SHIM_EXCLUSIVE depending on !CONFIG_HVM, but that won't help with allyesconfig.

PV_SHIM_EXCLUSIVE could be replaced by a PVSHIM_BOOT Kconfig. Combined with DOM0LESS_BOOT and DOM0_BOOT this gives the full freedom of booting in shim mode, in dom0 mode, or in dom0less/hlaunch mode; and is compatible with allyesconfig.

PV_SHIM_EXCLUSIVE would be unsetting DOM0_BOOT and DOM0LESS_BOOT.

Not that I want to do it right now. But it sounds like a nicer solution than the current mess.

Cheers,
Alejandro

#3 lore raw
Quoted 30 lines · Alejandro Vallejo
Quoted 29 lines · Andrew Cooper
Quoted 14 lines · Alejandro Vallejo

Otherwise compile-time errors ensue. It's a nonsensical configuration, but it's supriously triggered in randconfig jobs.

Fixes 8b5b49ceb3d9("x86: don't include domctl and alike in shim-excl...")
---
 xen/arch/x86/hvm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
xen/arch/x86/hvm/Kconfig +0 -0
index b903764bda..f57a87bca3 100644

xen/arch/x86/hvm/Kconfig line 7

Quoted 7 lines
xen/arch/x86/hvm/Kconfig +1 -0
@@ -1,6 +1,7 @@
 menuconfig HVM
 	bool "HVM support"
 	default !PV_SHIM
+	depends on !PV_SHIM_EXCLUSIVE
 	select COMPAT
 	select IOREQ_SERVER
 	select MEM_ACCESS_ALWAYS_ON

I deeply regret not nacking this originally and blocking the patch you listed as fixed.

This depends was explicitly reverted in 568f806cba4c because it breaks a lot of things, notably make allyesconfig.

Quoted 6 lines
Quoted 3 lines

We're going to need to find a different way to fix RANDCONFIG.

~Andrew

It can be done the other way around. PV_SHIM_EXCLUSIVE depending on !CONFIG_HVM, but that won't help with allyesconfig.

And it wouldn't be right either, in the model we're trying to follow now.

Jan