Skip to contentSkip to conversation

x86: Let x2APIC support depend on interrupt remapping or guest support

PATCH New Jan Kiszka 2 participants 2 messages May 4, 2015 – May 5, 2015 x86

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 x86: Let x2APIC support depend on interrupt remapping or guest support

We are able to use x2APIC mode in the absence of interrupt remapping on certain hypervisors. So it if fine to disable IRQ_REMAP without having to give up x2APIC support.

---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/Kconfig +1 -1
index 226d569..95ec1ad 100644
@@ -341,7 +341,7 @@ config X86_FEATURE_NAMES
 
 config X86_X2APIC
 	bool "Support x2apic"
-	depends on X86_LOCAL_APIC && X86_64 && IRQ_REMAP
+	depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
 	---help---
 	  This enables x2apic support on CPUs that have this feature.
 
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
#1 lore raw
x86: Let x2APIC support depend on interrupt remapping or guest support
Commit-ID:  19e3d60d49f05a9de0ef06c60703f31d4acd5f17
Gitweb:     http://git.kernel.org/tip/19e3d60d49f05a9de0ef06c60703f31d4acd5f17
Author:     Jan Kiszka <[email protected]>
AuthorDate: Mon, 4 May 2015 17:58:01 +0200
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Tue, 5 May 2015 14:01:37 +0200

x86: Let x2APIC support depend on interrupt remapping or guest support

We are able to use x2APIC mode in the absence of interrupt remapping on certain hypervisors. So it is fine to disable IRQ_REMAP without having to give up x2APIC support.

---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/Kconfig +1 -1
index c86fdc1..3c17c04 100644
@@ -340,7 +340,7 @@ config X86_FEATURE_NAMES
 
 config X86_X2APIC
 	bool "Support x2apic"
-	depends on X86_LOCAL_APIC && X86_64 && IRQ_REMAP
+	depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
 	---help---
 	  This enables x2apic support on CPUs that have this feature.