The function to flush the TLBs for a given p2m does not need to know about
the domain. So pass directly the p2m in parameter.
At the same time rename the function to p2m_flush_tlb to match the
parameter change.
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
isb();
}
-static void flush_tlb_domain(struct domain *d)
+static void p2m_flush_tlb(struct p2m_domain *p2m)
{
- struct p2m_domain *p2m = &d->arch.p2m;
unsigned long flags = 0;
uint64_t ovttbr;
out:
if ( flush )
{
- flush_tlb_domain(d);
+ p2m_flush_tlb(&d->arch.p2m);
ret = iommu_iotlb_flush(d, gfn_x(sgfn), nr);
if ( !rc )
rc = ret;
* Make sure that all TLBs corresponding to the new VMID are flushed
* before using it
*/
- flush_tlb_domain(d);
+ p2m_flush_tlb(p2m);
return 0;
}