BACKPORT: FROMLIST: KVM: arm64: smmu-v3: Add attach_dev

Add attach_dev HVC code which handles both stage-1 and stage-2.

Link: https://lore.kernel.org/all/20241212180423.1578358-36-smostafa@google.com/

Bug: 357781595
Bug: 384432312

Change-Id: I3f45b6baf0a2dceca786543190b1ee5fc83f3534
Signed-off-by: Mostafa Saleh <smostafa@google.com>
This commit is contained in:
Mostafa Saleh
2024-12-12 18:03:59 +00:00
parent d548fb914b
commit 6a5ce6eabe
2 changed files with 242 additions and 6 deletions
+4
View File
@@ -25,6 +25,10 @@ struct hyp_arm_smmu_v3_device {
size_t cmdq_log2size;
/* strtab_cfg.l2.l2ptrs is not used, instead computed from L1 */
struct arm_smmu_strtab_cfg strtab_cfg;
size_t oas;
size_t ias;
size_t pgsize_bitmap;
size_t ssid_bits;
};
extern size_t kvm_nvhe_sym(kvm_hyp_arm_smmu_v3_count);