[PATCH for v4.9 LTS 34/86] swiotlb-xen: update dev_addr after swapping pages

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Stefano Stabellini [ Upstream commit f1225ee4c8fcf09afaa199b8b1f0450f38b8cd11 ] In xen_swiotlb_map_page and xen_swiotlb_map_sg_attrs, if the original page is not suitable, we swap it for another page from the swiotlb pool. In these cases, we don't update the

[PATCH for v4.9 LTS 34/86] swiotlb-xen: update dev_addr after swapping pages

2017-06-17 Thread Levin, Alexander (Sasha Levin)
From: Stefano Stabellini [ Upstream commit f1225ee4c8fcf09afaa199b8b1f0450f38b8cd11 ] In xen_swiotlb_map_page and xen_swiotlb_map_sg_attrs, if the original page is not suitable, we swap it for another page from the swiotlb pool. In these cases, we don't update the previously calculated dma