diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2019-09-10 11:57:47 -0400 |
---|---|---|
committer | Thanos <tmakatos@gmail.com> | 2019-09-20 14:45:21 +0100 |
commit | 5d8c80c9df26c8a91384531774eee220d1d7f6f8 (patch) | |
tree | 33c154bc3d3cf70416d40dce4db53d5d49456668 /README.md | |
parent | 5d3393c21d4054394bdb042d13a3262afadb5e0e (diff) | |
download | libvfio-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.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |