From a2825da4c35768d909f8c6dbdd30b06f168176fb Mon Sep 17 00:00:00 2001 From: William Henderson Date: Mon, 4 Sep 2023 10:25:32 +0000 Subject: fix: bitmap format clarification Signed-off-by: William Henderson --- docs/vfio-user.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/vfio-user.rst b/docs/vfio-user.rst index f67ce86..a0e018c 100644 --- a/docs/vfio-user.rst +++ b/docs/vfio-user.rst @@ -1757,6 +1757,9 @@ The data field of the request is structured as follows: The data field of the response is identical, except with the bitmap added on the end at offset 24. +The bitmap is an array of u64s that holds the output bitmap, with 1 bit +reporting a *page_size* unit of IOVA. + The mapping of IOVA to bits is given by: ``bitmap[(addr - iova)/page_size] & (1ULL << (addr % 64))`` -- cgit v1.1