From: Alexey Kardashevskiy <redacted>
The IOMMU API implements groups creating/deletion, device binding
and IOMMU map/unmap operations.
The PowerPC implementation uses most of the API except map/unmap
operations, which are implemented on POWER using hypercalls.
However, in order to link a kernel with the CONFIG_IOMMU_API enabled,
the empty kvm_iommu_map_pages/kvm_iommu_unmap_pages have to be
defined, so this defines them.
Signed-off-by: Alexey Kardashevskiy <redacted>
Cc: David Gibson <redacted>
Signed-off-by: Paul Mackerras <redacted>
---
arch/powerpc/include/asm/kvm_host.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
@@ -603,4 +603,18 @@ struct kvm_vcpu_arch {#define __KVM_HAVE_ARCH_WQP+#ifdef CONFIG_IOMMU_API+/* POWERPC does not use IOMMU API for mapping/unmapping */+staticinlineintkvm_iommu_map_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+return0;+}++staticinlinevoidkvm_iommu_unmap_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+}+#endif /* CONFIG_IOMMU_API */+#endif /* __POWERPC_KVM_HOST_H__ */
From: Alex Williamson <hidden> Date: 2013-05-06 21:07:32
On Mon, 2013-05-06 at 17:21 +1000, aik@ozlabs.ru wrote:
quoted hunk
From: Alexey Kardashevskiy <redacted>
The IOMMU API implements groups creating/deletion, device binding
and IOMMU map/unmap operations.
The PowerPC implementation uses most of the API except map/unmap
operations, which are implemented on POWER using hypercalls.
However, in order to link a kernel with the CONFIG_IOMMU_API enabled,
the empty kvm_iommu_map_pages/kvm_iommu_unmap_pages have to be
defined, so this defines them.
Signed-off-by: Alexey Kardashevskiy <redacted>
Cc: David Gibson <redacted>
Signed-off-by: Paul Mackerras <redacted>
---
arch/powerpc/include/asm/kvm_host.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
@@ -603,4 +603,18 @@ struct kvm_vcpu_arch {#define __KVM_HAVE_ARCH_WQP+#ifdef CONFIG_IOMMU_API+/* POWERPC does not use IOMMU API for mapping/unmapping */+staticinlineintkvm_iommu_map_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+return0;+}++staticinlinevoidkvm_iommu_unmap_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+}+#endif /* CONFIG_IOMMU_API */+#endif /* __POWERPC_KVM_HOST_H__ */
This is no longer needed, Gleb applied my patch for 3.10 that make all
of KVM device assignment dependent on a build config option and the top
level kvm_host.h now includes this when that is not set. Thanks,
Alex
On Mon, 2013-05-06 at 17:21 +1000, aik@ozlabs.ru wrote:
quoted
From: Alexey Kardashevskiy <redacted>
The IOMMU API implements groups creating/deletion, device binding
and IOMMU map/unmap operations.
The PowerPC implementation uses most of the API except map/unmap
operations, which are implemented on POWER using hypercalls.
However, in order to link a kernel with the CONFIG_IOMMU_API enabled,
the empty kvm_iommu_map_pages/kvm_iommu_unmap_pages have to be
defined, so this defines them.
Signed-off-by: Alexey Kardashevskiy <redacted>
Cc: David Gibson <redacted>
Signed-off-by: Paul Mackerras <redacted>
---
arch/powerpc/include/asm/kvm_host.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
@@ -603,4 +603,18 @@ struct kvm_vcpu_arch {#define __KVM_HAVE_ARCH_WQP+#ifdef CONFIG_IOMMU_API+/* POWERPC does not use IOMMU API for mapping/unmapping */+staticinlineintkvm_iommu_map_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+return0;+}++staticinlinevoidkvm_iommu_unmap_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+}+#endif /* CONFIG_IOMMU_API */+#endif /* __POWERPC_KVM_HOST_H__ */
This is no longer needed, Gleb applied my patch for 3.10 that make all
of KVM device assignment dependent on a build config option and the top
level kvm_host.h now includes this when that is not set. Thanks,
Cannot find it, could you point me please where it is on github or
git.kernel.org? Thanks.
--
Alexey
From: Alex Williamson <hidden> Date: 2013-05-07 01:43:17
On Tue, 2013-05-07 at 10:49 +1000, Alexey Kardashevskiy wrote:
On 05/07/2013 07:07 AM, Alex Williamson wrote:
quoted
On Mon, 2013-05-06 at 17:21 +1000, aik@ozlabs.ru wrote:
quoted
From: Alexey Kardashevskiy <redacted>
The IOMMU API implements groups creating/deletion, device binding
and IOMMU map/unmap operations.
The PowerPC implementation uses most of the API except map/unmap
operations, which are implemented on POWER using hypercalls.
However, in order to link a kernel with the CONFIG_IOMMU_API enabled,
the empty kvm_iommu_map_pages/kvm_iommu_unmap_pages have to be
defined, so this defines them.
Signed-off-by: Alexey Kardashevskiy <redacted>
Cc: David Gibson <redacted>
Signed-off-by: Paul Mackerras <redacted>
---
arch/powerpc/include/asm/kvm_host.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
@@ -603,4 +603,18 @@ struct kvm_vcpu_arch {#define __KVM_HAVE_ARCH_WQP+#ifdef CONFIG_IOMMU_API+/* POWERPC does not use IOMMU API for mapping/unmapping */+staticinlineintkvm_iommu_map_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+return0;+}++staticinlinevoidkvm_iommu_unmap_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+}+#endif /* CONFIG_IOMMU_API */+#endif /* __POWERPC_KVM_HOST_H__ */
This is no longer needed, Gleb applied my patch for 3.10 that make all
of KVM device assignment dependent on a build config option and the top
level kvm_host.h now includes this when that is not set. Thanks,
Cannot find it, could you point me please where it is on github or
git.kernel.org? Thanks.
On Tue, 2013-05-07 at 10:49 +1000, Alexey Kardashevskiy wrote:
quoted
On 05/07/2013 07:07 AM, Alex Williamson wrote:
quoted
On Mon, 2013-05-06 at 17:21 +1000, aik@ozlabs.ru wrote:
quoted
From: Alexey Kardashevskiy <redacted>
The IOMMU API implements groups creating/deletion, device binding
and IOMMU map/unmap operations.
The PowerPC implementation uses most of the API except map/unmap
operations, which are implemented on POWER using hypercalls.
However, in order to link a kernel with the CONFIG_IOMMU_API enabled,
the empty kvm_iommu_map_pages/kvm_iommu_unmap_pages have to be
defined, so this defines them.
Signed-off-by: Alexey Kardashevskiy <redacted>
Cc: David Gibson <redacted>
Signed-off-by: Paul Mackerras <redacted>
---
arch/powerpc/include/asm/kvm_host.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
@@ -603,4 +603,18 @@ struct kvm_vcpu_arch {#define __KVM_HAVE_ARCH_WQP+#ifdef CONFIG_IOMMU_API+/* POWERPC does not use IOMMU API for mapping/unmapping */+staticinlineintkvm_iommu_map_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+return0;+}++staticinlinevoidkvm_iommu_unmap_pages(structkvm*kvm,+structkvm_memory_slot*slot)+{+}+#endif /* CONFIG_IOMMU_API */+#endif /* __POWERPC_KVM_HOST_H__ */
This is no longer needed, Gleb applied my patch for 3.10 that make all
of KVM device assignment dependent on a build config option and the top
level kvm_host.h now includes this when that is not set. Thanks,
Cannot find it, could you point me please where it is on github or
git.kernel.org? Thanks.