Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/virtio: stub DMA mapping functions

Add dma_map_page_attrs and dma_unmap_page_attrs stubs.
Follow the same pattern as existing DMA mapping stubs.

Created using Cursor CLI.

Message-ID: <3512df1fe0e2129ea493434a21c940c50381cc93.1764873799.git.mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

+4
+4
tools/virtio/linux/dma-mapping.h
··· 22 22 #define dma_free_coherent(d, s, p, h) kfree(p) 23 23 24 24 #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o)) 25 + #define dma_map_page_attrs(d, p, o, s, dir, a) (page_to_phys(p) + (o)) 25 26 26 27 #define dma_map_single(d, p, s, dir) (virt_to_phys(p)) 27 28 #define dma_map_single_attrs(d, p, s, dir, a) (virt_to_phys(p)) ··· 30 29 31 30 #define dma_unmap_single(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0) 32 31 #define dma_unmap_page(d, a, s, r) do { (void)(d); (void)(a); (void)(s); (void)(r); } while (0) 32 + #define dma_unmap_page_attrs(d, a, s, r, t) do { \ 33 + (void)(d); (void)(a); (void)(s); (void)(r); (void)(t); \ 34 + } while (0) 33 35 34 36 #define sg_dma_address(sg) (0) 35 37 #define sg_dma_len(sg) (0)