diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2013-04-29 12:54:08 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-04-29 22:08:50 -0400 |
commit | 4cee4b72f1e2600e19779a14d4d9a4f4016ce49f (patch) | |
tree | 92663df9a836d5caa8281e21a888f27771eb1c9c /arch/x86/kvm | |
parent | 5a2892ce72e010e3cb96b438d7cdddce0c88e0e6 (diff) |
kvm: KVM_CAP_IOMMU only available with device assignment
Fix build with CONFIG_PCI unset by linking KVM_CAP_IOMMU to
device assignment config option. It has no purpose otherwise.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 8747fef7fd59..96f914e828d4 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -2544,9 +2544,11 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
2544 | case KVM_CAP_PV_MMU: /* obsolete */ | 2544 | case KVM_CAP_PV_MMU: /* obsolete */ |
2545 | r = 0; | 2545 | r = 0; |
2546 | break; | 2546 | break; |
2547 | #ifdef CONFIG_KVM_DEVICE_ASSIGNMENT | ||
2547 | case KVM_CAP_IOMMU: | 2548 | case KVM_CAP_IOMMU: |
2548 | r = iommu_present(&pci_bus_type); | 2549 | r = iommu_present(&pci_bus_type); |
2549 | break; | 2550 | break; |
2551 | #endif | ||
2550 | case KVM_CAP_MCE: | 2552 | case KVM_CAP_MCE: |
2551 | r = KVM_MAX_MCE_BANKS; | 2553 | r = KVM_MAX_MCE_BANKS; |
2552 | break; | 2554 | break; |