aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2019-09-10 11:57:47 -0400
committerThanos <tmakatos@gmail.com>2019-09-20 14:45:21 +0100
commit5d8c80c9df26c8a91384531774eee220d1d7f6f8 (patch)
tree33c154bc3d3cf70416d40dce4db53d5d49456668 /README.md
parent5d3393c21d4054394bdb042d13a3262afadb5e0e (diff)
downloadlibvfio-user-5d8c80c9df26c8a91384531774eee220d1d7f6f8.zip
libvfio-user-5d8c80c9df26c8a91384531774eee220d1d7f6f8.tar.gz
libvfio-user-5d8c80c9df26c8a91384531774eee220d1d7f6f8.tar.bz2
experimental support for Python bindings plus sample
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>
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index bf06dd4..cf22b3a 100644
--- a/README.md
+++ b/README.md
@@ -90,6 +90,8 @@ To build and install the library run:
To specify an alternative kernel directory set the KDIR environment variable
accordingly.
+To enable Python bindings set the PYTHON_BINDINGS environment variable to a
+non-empty string.
Finally build your program and link it to libmuser.so.