Skip to contentSkip to conversation

xen: Change xen-acpi-processor dom0 dependency

PATCH In review Jason Andryuk 3 participants 4 messages Mar 31, 2025 – Apr 3, 2025 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: Change xen-acpi-processor dom0 dependency

xen-acpi-processor functions under a PVH dom0 with only a xen_initial_domain() runtime check. Change the Kconfig dependency from PV dom0 to generic dom0 to reflect that.

---
 drivers/xen/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/Kconfig +1 -1
index f7d6f47971fd..24f485827e03 100644
@@ -278,7 +278,7 @@ config XEN_PRIVCMD_EVENTFD
 
 config XEN_ACPI_PROCESSOR
 	tristate "Xen ACPI processor"
-	depends on XEN && XEN_PV_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ
+	depends on XEN && XEN_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ
 	default m
 	help
 	  This ACPI processor uploads Power Management information to the Xen
Signature · 1 line
2.49.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Jason Andryuk

xen-acpi-processor functions under a PVH dom0 with only a xen_initial_domain() runtime check. Change the Kconfig dependency from PV dom0 to generic dom0 to reflect that.

---
  drivers/xen/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/Kconfig +0 -0
index f7d6f47971fd..24f485827e03 100644

drivers/xen/Kconfig config XEN_PRIVCMD_EVENTFD · line 284

Quoted 8 lines
drivers/xen/Kconfig +1 -1
@@ -278,7 +278,7 @@ config XEN_PRIVCMD_EVENTFD
 
  config XEN_ACPI_PROCESSOR
  	tristate "Xen ACPI processor"
-	depends on XEN && XEN_PV_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ
+	depends on XEN && XEN_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ
  	default m
  	help
  	  This ACPI processor uploads Power Management information to the Xen

Assuming that all needed hypercalls are fine for PVH dom0:

Juergen

#2 lore raw
Quoted 11 lines · Jürgen Groß
Quoted 10 lines · Jason Andryuk

xen-acpi-processor functions under a PVH dom0 with only a xen_initial_domain() runtime check.  Change the Kconfig dependency from PV dom0 to generic dom0 to reflect that.

---
  drivers/xen/Kconfig | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
Quoted 5 lines
drivers/xen/Kconfig +0 -0
index f7d6f47971fd..24f485827e03 100644
@@ -278,7 +278,7 @@ config XEN_PRIVCMD_EVENTFD
Quoted 7 lines

  config XEN_ACPI_PROCESSOR
      tristate "Xen ACPI processor"
-    depends on XEN && XEN_PV_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ +    depends on XEN && XEN_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ default m
      help
        This ACPI processor uploads Power Management information to the Xen

Assuming that all needed hypercalls are fine for PVH dom0:

It's platform_op XENPF_set_processor_pminfo and XENPF_get_cpuinfo. Xen doesn't check if the caller is PV or PVH.

Quoted 1 line

Thanks, Juergen.

-Jason

Tested-by
#3 lore raw
In reply to Jürgen Groß
Quoted 17 lines · Jürgen Groß
Quoted 16 lines · Jason Andryuk

xen-acpi-processor functions under a PVH dom0 with only a xen_initial_domain() runtime check. Change the Kconfig dependency from PV dom0 to generic dom0 to reflect that.

---
  drivers/xen/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/Kconfig +0 -0
index f7d6f47971fd..24f485827e03 100644
@@ -278,7 +278,7 @@ config XEN_PRIVCMD_EVENTFD
 
Quoted 9 lines

drivers/xen/Kconfig config XEN_PRIVCMD_EVENTFD · line 284

Quoted 7 lines
drivers/xen/Kconfig +1 -1
  config XEN_ACPI_PROCESSOR
  	tristate "Xen ACPI processor"
-	depends on XEN && XEN_PV_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ
+	depends on XEN && XEN_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ
  	default m
  	help
  	  This ACPI processor uploads Power Management information to the Xen

Assuming that all needed hypercalls are fine for PVH dom0:

If you want to feel further ascertained, you could also add

even if that was only in the context of "xen/acpi: upload power and performance related data from a PVH dom0", where I noticed this issue.

Jan