Message270935
I have added AF_VSOCK support to python's 3.6 socket module ( socketmodule.c socketmodule.h cloned from https://hg.python.org/cpython ). The implementation is very similar to AF_NETLINK. AF_VSOCK requires the VMware-specific VMCI transport which is currently upstream or the virtio-vsock drivers developed by Stefan Hajnoczi at Red Hat. The virtio-vsock drivers are not upstream yet but more information with source and build instructions can be found at http://qemu-project.org/Features/VirtioVsock.
More information on vSocket programming can be found at https://pubs.vmware.com/vsphere-60/topic/com.vmware.ICbase/PDF/ws9_esx60_vmci_sockets.pdf
The VMCI transport supports SOCK_DGRAM and SOCK_STREAM on both Linux and Windows. Virtio-vsock currently supports SOCK_STREAM only on Linux.
My python addition supports SOCK_STREAM and SOCK_DGRAM calls on Linux only.
I have tested my implementation on both driver sets on Linux.
Attached is a diff file so you can see which files I've modified. These include a new configure.ac. I have already tested the new file generation by running autoreconf.
Also included in the patch is an updated socket.rst file however I could not get the final html page to be double spaced. |
|
Date |
User |
Action |
Args |
2016-07-21 15:36:31 | Cathy Avery | set | recipients:
+ Cathy Avery, gregory.p.smith |
2016-07-21 15:36:30 | Cathy Avery | set | messageid: <1469115390.74.0.838831983223.issue27584@psf.upfronthosting.co.za> |
2016-07-21 15:36:30 | Cathy Avery | link | issue27584 messages |
2016-07-21 15:36:30 | Cathy Avery | create | |
|