On 23-Jul-20 3:48 PM, wangyunjian wrote:
From: Yunjian Wang <[email protected]>

Currently, we will create new user mem map entry for the same memory
segment, but in fact it has already been added to the user mem maps.
It's not necessary to create it twice.

To resolve the issue, add support to remove the same entry in the
function compact_user_maps().

Fixes: 0cbce3a167f1 ("vfio: skip DMA map failure if already mapped")
Cc: [email protected]

Signed-off-by: Yunjian Wang <[email protected]>
---

Acked-by: Anatoly Burakov <[email protected]>

--
Thanks,
Anatoly

Reply via email to