nutanix / libvfio-user

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

support for very large 64-bit bars #710

Open thomasbarrett opened 1 year ago

thomasbarrett commented 1 year ago

libvfio-user does not appear to support 64-bit BAR. In the 'private.h' file, I noticed that the region size was constrained to uint32_t. Even after fixing this, I can't seem to be able to create a 64-bit BAR. Does anyone have any experience using libvfio-user with 64-bit BARs?

tmakatos commented 1 year ago

We haven't come across 64-bit BARs so far. FWIU, it's should be just a matter of changing uint32_t to uint64_t in a few places. When you say it doesn't work, what do you mean? Do you have some logs/code to share?

ramakristipati commented 6 months ago

is this fixed?

jlevon commented 6 months ago

No, but we would definitely be interested in patches if you're interested in making this work

jlevon commented 5 months ago

@thomasbarrett @ramakristipati can you please try out https://github.com/nutanix/libvfio-user/pull/792 ?

jlevon commented 5 months ago

Basic 64-bit support done via https://github.com/nutanix/libvfio-user/pull/792 What remains is support for individual bars over 4g