Skip to contentSkip to conversation

drivers: iommu: hyperv: Make HYPERV_IOMMU only available on x86

PATCH Applied Boqun Feng 3 participants 3 messages Oct 17, 2019 – Oct 28, 2019

Subsystems (3)
lore
Share & tools
lore

Boqun Feng

author
#0 lore raw

PATCH 1/1 drivers: iommu: hyperv: Make HYPERV_IOMMU only available on x86

Currently hyperv-iommu is implemented in a x86 specific way, for example, apic is used. So make the HYPERV_IOMMU Kconfig depend on X86 as a preparation for enabling HyperV on architecture other than x86.

---

Without this patch, I could observe compile error:

| drivers/iommu/hyperv-iommu.c:17:10: fatal error: asm/apic.h: No such
| file or directory
|   17 | #include <asm/apic.h>
|      |          ^~~~~~~~~~~~

, after apply Michael's ARM64 on HyperV enablement patchset.

 drivers/iommu/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/Kconfig +1 -1
index e3842eabcfdd..f1086eaed41c 100644
@@ -467,7 +467,7 @@ config QCOM_IOMMU
 
 config HYPERV_IOMMU
 	bool "Hyper-V x2APIC IRQ Handling"
-	depends on HYPERV
+	depends on HYPERV && X86
 	select IOMMU_API
 	default HYPERV
 	help
Signature · 1 line
2.23.0
Reviewed-by Michael Kelley on v1 1/1
#1 lore raw

From: Boqun Feng <[email protected]> Sent: Wednesday, October 16, 2019 5:57 PM

Quoted 37 lines

Currently hyperv-iommu is implemented in a x86 specific way, for example, apic is used. So make the HYPERV_IOMMU Kconfig depend on X86 as a preparation for enabling HyperV on architecture other than x86.

---

Without this patch, I could observe compile error:

| drivers/iommu/hyperv-iommu.c:17:10: fatal error: asm/apic.h: No such
| file or directory
|   17 | #include <asm/apic.h>
|      |          ^~~~~~~~~~~~

, after apply Michael's ARM64 on HyperV enablement patchset.

 drivers/iommu/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/Kconfig +1 -2
index e3842eabcfdd..f1086eaed41c 100644
@@ -467,7 +467,7 @@ config QCOM_IOMMU
 
 config HYPERV_IOMMU
 	bool "Hyper-V x2APIC IRQ Handling"
-	depends on HYPERV
+	depends on HYPERV && X86
 	select IOMMU_API
 	default HYPERV
 	help
--
Quoted 1 line

2.23.0

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Applied
#2 lore raw
In reply to Boqun Feng
Quoted 8 lines · Boqun Feng

Currently hyperv-iommu is implemented in a x86 specific way, for example, apic is used. So make the HYPERV_IOMMU Kconfig depend on X86 as a preparation for enabling HyperV on architecture other than x86.

Queued up for hyperv-fixes, thanks!

Signature · 2 lines
Thanks,
Sasha