Skip to content

Commit e91aa8e

Browse files
aikpaulusmack
authored andcommitted
KVM: PPC: Enable IOMMU_API for KVM_BOOK3S_64 permanently
It does not make much sense to have KVM in book3s-64 and not to have IOMMU bits for PCI pass through support as it costs little and allows VFIO to function on book3s KVM. Having IOMMU_API always enabled makes it unnecessary to have a lot of "#ifdef IOMMU_API" in arch/powerpc/kvm/book3s_64_vio*. With those ifdef's we could have only user space emulated devices accelerated (but not VFIO) which do not seem to be very useful. Signed-off-by: Alexey Kardashevskiy <[email protected]> Reviewed-by: David Gibson <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 4898d3f commit e91aa8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/kvm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ config KVM_BOOK3S_64
6767
select KVM_BOOK3S_64_HANDLER
6868
select KVM
6969
select KVM_BOOK3S_PR_POSSIBLE if !KVM_BOOK3S_HV_POSSIBLE
70+
select SPAPR_TCE_IOMMU if IOMMU_SUPPORT
7071
---help---
7172
Support running unmodified book3s_64 and book3s_32 guest kernels
7273
in virtual machines on book3s_64 host processors.

0 commit comments

Comments
 (0)