Skip to contentSkip to conversation

enable swiotlb on i386 in linux-2.6-xen tree

PATCH RESEND In review Muli Ben-Yehuda 2 participants 2 messages Dec 15, 2005 – Dec 16, 2005

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 enable swiotlb on i386 in linux-2.6-xen tree

The linux-2.6-xen tree has a typo in the Kconfig file for i386 that disables building swiotlb. This patch fixes it in the same manner that x86-64 does it.

Cheers,
Muli

arch/i386/Kconfig +2 -2
diff -r c1c170a55fe0e97156379d10870aed024ed0012a arch/i386/Kconfig
@@ -58,6 +58,7 @@
 	bool "Xen-compatible"
 	select X86_UP_APIC if !SMP && XEN_PRIVILEGED_GUEST
 	select X86_UP_IOAPIC if !SMP && XEN_PRIVILEGED_GUEST
+	select SWIOTLB if XEN_PHYSDEV_ACCESS
 	help
 	  Choose this option is you plan to run this kernel on top of Xen
 	  Hypervisor.
@@ -716,8 +717,7 @@
 
 config SWIOTLB
 	bool
-	depends on X86_PRIVILEGED_GUEST
-	default y
+	default n
 
 source "drivers/firmware/Kconfig"
 
Signature · 2 lines
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/
#1 lore raw
Quoted 3 lines · Muli Ben-Yehuda

The linux-2.6-xen tree has a typo in the Kconfig file for i386 that disables building swiotlb. This patch fixes it in the same manner that x86-64 does it.

Thanks! I've applied the patch.

christian

Quoted 31 lines

Cheers,
Muli

diff -r c1c170a55fe0e97156379d10870aed024ed0012a arch/i386/Kconfig

arch/i386/Kconfig +2 -2
@@ -58,6 +58,7 @@
 	bool "Xen-compatible"
 	select X86_UP_APIC if !SMP && XEN_PRIVILEGED_GUEST
 	select X86_UP_IOAPIC if !SMP && XEN_PRIVILEGED_GUEST
+	select SWIOTLB if XEN_PHYSDEV_ACCESS
 	help
 	  Choose this option is you plan to run this kernel on top of Xen
 	  Hypervisor.
@@ -716,8 +717,7 @@
 
 config SWIOTLB
 	bool
-	depends on X86_PRIVILEGED_GUEST
-	default y
+	default n
 
 source "drivers/firmware/Kconfig"
 
Signature · 2 lines
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/