nutanix / libvfio-user

framework for emulating devices in userspace
BSD 3-Clause "New" or "Revised" License
162 stars 51 forks source link

Fix address calculation for message-based DMA #740

Closed mnissler-rivos closed 1 year ago

mnissler-rivos commented 1 year ago

The correct DMA address is formed by adding base and offset - the latter was accidentally missing.

mnissler-rivos commented 1 year ago

Updated the test and verified that it fails without and passes with the fix.

jlevon commented 1 year ago

@mnissler-rivos sorry - do you mind adding Signed-off-by ?

mnissler-rivos commented 1 year ago

@mnissler-rivos sorry - do you mind adding Signed-off-by ?

Of course.