ANDROID: iommu/arm-smmu-v3-kvm: Move files out of KVM

In Preparation of having SMMUv3 driver as an EL2 module move its
files to drivers/iommu/...

No functional change intended.

Bug: 357781595
Bug: 384432312
Change-Id: I7c62d287103c6b2461d65d2cbe799a465ebd54f7
Signed-off-by: Mostafa Saleh <smostafa@google.com>
This commit is contained in:
Mostafa Saleh
2024-12-20 14:36:12 +00:00
parent 87b9bddc64
commit f4d03430a2
5 changed files with 10 additions and 7 deletions
+5 -3
View File
@@ -16,9 +16,11 @@ hyp-obj-$(CONFIG_TRACING) += clock.o events.o trace.o
hyp-obj-$(CONFIG_MODULES) += modules.o
hyp-obj-y += $(lib-objs)
hyp-obj-$(CONFIG_ARM_SMMU_V3_PKVM) += iommu/arm-smmu-v3.o
hyp-obj-$(CONFIG_ARM_SMMU_V3_PKVM) += iommu/io-pgtable-arm.o \
../../../../../drivers/iommu/io-pgtable-arm-common.o
# There is no way to compile these separately as calling Makefile.nvhe again would
# create duplicate sections
hyp-obj-$(CONFIG_ARM_SMMU_V3_PKVM) += ../../../../../drivers/iommu/arm/arm-smmu-v3/pkvm/arm-smmu-v3.o
hyp-obj-$(CONFIG_ARM_SMMU_V3_PKVM) += ../../../../../drivers/iommu/arm/arm-smmu-v3/pkvm/io-pgtable-arm.o
hyp-obj-$(CONFIG_ARM_SMMU_V3_PKVM) += ../../../../../drivers/iommu/io-pgtable-arm-common.o
$(obj)/hyp.lds: $(src)/hyp.lds.S FORCE
$(call if_changed_dep,cpp_lds_S)
@@ -13,9 +13,8 @@
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <kvm/arm_smmu_v3.h>
#include "arm-smmu-v3.h"
#include "pkvm/arm_smmu_v3.h"
extern struct kvm_iommu_ops kvm_nvhe_sym(smmu_ops);
@@ -6,7 +6,6 @@
*/
#include <asm/arm-smmu-v3-common.h>
#include <asm/kvm_hyp.h>
#include <kvm/arm_smmu_v3.h>
#include <linux/io-pgtable-arm.h>
#include <nvhe/alloc.h>
#include <nvhe/iommu.h>
@@ -15,6 +14,8 @@
#include <nvhe/pkvm.h>
#include <nvhe/trap_handler.h>
#include "arm_smmu_v3.h"
#define ARM_SMMU_POLL_TIMEOUT_US 100000 /* 100ms arbitrary timeout */
size_t __ro_after_init kvm_hyp_arm_smmu_v3_count;
@@ -4,7 +4,6 @@
*/
#include <asm/kvm_hyp.h>
#include <asm/kvm_mmu.h>
#include <kvm/arm_smmu_v3.h>
#include <linux/types.h>
#include <linux/gfp_types.h>
#include <linux/io-pgtable-arm.h>
@@ -13,6 +12,8 @@
#include <nvhe/iommu.h>
#include <nvhe/mem_protect.h>
#include "arm_smmu_v3.h"
int arm_lpae_map_exists(void)
{
return -EEXIST;