Description of problem: If vaddr is mapped to PFN backend physical adress, add IOMMU_MMIO flag to dma protection flag, so that IOMMU can do correct mapping, i.e. don't set C bit in IO page table, otherwise the device can't recongnize the phyiscal address with C bit set. Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Create a SEV/CSV VM with two GPU card passthrough to the VM. 2. One GPU accesses the other GPU's MMIO memory region. Actual results: It fails to access the other GPU MMIO memory. Expected results: Access other GPU's mmio memory successfully. Additional info:
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5854