BACKPORT: FROMLIST: KVM: arm64: smmu-v3: Setup command queue

Map the command queue allocated by the host into the hypervisor address
space. When the host mappings are finalized, the queue is unmapped from
the host.

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

Bug: 357781595
Bug: 384432312

Change-Id: I191e9d99c02943f594c03bfaba69b1da3405a674
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Mostafa Saleh <smostafa@google.com>
This commit is contained in:
Jean-Philippe Brucker
2024-12-12 18:03:51 +00:00
committed by Mostafa Saleh
parent b414161ca3
commit bd15feb317
2 changed files with 169 additions and 0 deletions
+4
View File
@@ -16,8 +16,12 @@ struct hyp_arm_smmu_v3_device {
struct kvm_hyp_iommu iommu;
phys_addr_t mmio_addr;
size_t mmio_size;
unsigned long features;
void __iomem *base;
u32 cmdq_prod;
u64 *cmdq_base;
size_t cmdq_log2size;
};
extern size_t kvm_nvhe_sym(kvm_hyp_arm_smmu_v3_count);