aboutsummaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2021-01-28install static library (#267)John Levon1-0/+3
SPDK would like to statically link in libvfio-user, and it builds against a staged installation directory, so always install the static library too. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
2021-01-20re-work API for adding capabilities (#200)John Levon1-2/+2
Allow to add capabilities individually, including extended capabilities, and those to be handled via the region callback. As a side effect, rework config space accesses to handle reads that straddle capabilities and non-standard areas and use callbacks as needed. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
2021-01-04remove Python bindings (#223)John Levon1-11/+0
They haven't kept pace with recent changes, and at this point are of no real use (and besides, options like CFFI are likely better than hand-rolled bindings). Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-12-08add shared library versioning (#174)John Levon1-4/+18
Add basic "soname" versioning (but don't yet start using it meaningfully). Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-12-08build a static libvfio-user (#173)John Levon1-9/+13
Note that we intentionally don't install it: this is really for use when building as a sub-module. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-27rename to libvfio-user (#128)John Levon1-22/+21
The muser name no longer reflects the implementation, and will just serve to confuse. Bite the bullet now, and rename ourselves to reflect the actual implementation. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-11-24clean up headersJohn Levon1-20/+10
Introduce include/ dir for public headers, and clean up include guards etc.
2020-11-24parse VFIO_USER_VERSION JSON stanzaJohn Levon1-0/+2
2020-11-23move IRQ into separate fileThanos Makatos1-1/+4
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20move migration into separate fileThanos Makatos1-0/+2
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-19enable assert() in release builds (#98)John Levon1-2/+1
2020-11-19refactor socket code into lib/tran_sock.[ch] (#97)John Levon1-4/+7
2020-11-16use object libraries to build libmuserJohn Levon1-2/+5
Using target_link_libraries for libmuser meant that unused symbols - including all of the public API - were not brought into the target shared object. Use CMake's "object library" feature instead, which doesn't use intermediate archives and thus avoids this issue.
2020-11-12don't use CONCAT in cmake (#81)John Levon1-1/+1
CentOS 7's cmake 2.8.12.2 apparently doesn't support this.
2020-11-11Merge branch 'vfio-user'Thanos Makatos1-2/+2
2020-11-11drop the kernel moduleThanos Makatos1-1/+0
vfio-user is on track to be accepted upstream, so we shouldn't need muser.ko. This patch removes it since keeping it in the source is a maintanance burden. The last version is stashed in https://github.com/nutanix/muser/tree/kmod. If there is a valid use case we can reconsider reinstating it. fixes #67 Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-03install vfio_user.hThanos Makatos1-1/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23add vfio_user.h to MakefileThanos Makatos1-0/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-08-12Split compilation unit of muser shared libraryFelipe Franciosi1-8/+19
This creates several smaller libraries out of the compilation units of the muser userspace library. It then links them together to build the shared library. In this process, we also generate unit test version of the libraries which include --coverage in the compilation and linking of those files. Those will be statically linked to unit tests later on. Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
2020-08-12Rename libmuser*c source filesFelipe Franciosi1-4/+9
For clarity and better project organisation towards unit tests, this renames libmuser.c to muser_ctx.c and libmuser_pci.c to muser_pci.c. CMakeLists is fixed accordingly including some other minor cleanup. Future work should further split muser_ctx.c so that unit tests can genuinely be written towards testing compilation units. Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
2019-11-07enable -Wall, -Wextra, and -Werror and fix all warningsThanos Makatos1-0/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2019-11-02Fix various format issuesFelipe Franciosi1-1/+1
Remove various spurious whitespaces and empty lines. Some other alignment issues, too. Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
2019-09-20experimental support for Python bindings plus sampleThanos Makatos1-0/+13
This patch introduces experimental support for Python bindings, plus the GPIO sample in Python. There are many issues with extending Python (from module stuff to error handling), the most important one is the inability to modify the buf argument to the region access callbacks when a region is read from. For now I've resorted to returning the value since in libmuser we limit accesses to 8 bytes (maybe we should consider that for the C API as well?). Also, the fact that we don't pass the region being accessed as an argument to a region access callback results in clunky code (see the REGION_WRAP macro). Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2019-09-05introduce private header fileThanos Makatos1-0/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2019-09-05make capabilities callback basedThanos Makatos1-1/+3
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2019-09-05move capabilities to separate subdirectoryThanos Makatos1-5/+6
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2019-09-05Initial commitFelipe Franciosi1-0/+46