Commit 511d73aa authored by Xu Yiwei's avatar Xu Yiwei Committed by guzitao
Browse files

sw64: iommu: fix iommu-flush ops to support multi-device passthrough

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I73KII



--------------------------------

Current iommu-flush ops cannot handle the rare case which integrates
several groups of devices into 1 domain. Unluckily, QEMU can meet
this situation in some circumstances.

We fix the flush ops by flushing all devices in the domain's device
list, which makes iommu capable of mapping multiple devices correctly.

Signed-off-by: default avatarXu Yiwei <xuyiwei@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent a9077d7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment