aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-10-20add vim modelineThanos Makatos1-0/+2
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-10-20remove unused function send_responseThanos Makatos1-16/+0
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-10-19Fix LM_FLAG_ATTACH_NB commentsSwapnil Ingle2-6/+6
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-19Revert "libmuser: Try to attach device for non-block ctx"Swapnil Ingle2-7/+8
This reverts commit 435acf689f4ec5c199fff9c3fe4057de8bba02ce. Caller must always call lm_ctx_try_attach(). SPDK expects this behaviour.
2020-10-16libmuser: Try to attach device for non-block ctxSwapnil Ingle2-8/+7
Quick try to attach device while lm_create_ctx with LM_FLAG_ATTACH_NB Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-15libmuser: Block instead of spinning in recv_retrySwapnil Ingle1-8/+14
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-15libmuser: retry recv() when retured EAGAIN or EINTRSwapnil Ingle1-3/+14
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-07client, server changes for VFIO_USER_DEVICE_RESETSwapnil Ingle2-0/+21
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-07Implementation of VFIO_USER_DEVICE_RESETSwapnil Ingle1-5/+21
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-07lm_irq_trigger(): Arg name in sync with declerationSwapnil Ingle1-6/+7
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-07client, server changes for lm_irq_message()Swapnil Ingle2-2/+31
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-07Implementation of VFIO_USER_VM_INTERRUPTSwapnil Ingle3-3/+58
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-05Add test for VFIO_USER_DMA_READ and VFIO_USER_DMA_WRITESwapnil Ingle3-20/+236
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-05libmuser: Add support for VFIO_USER_DMA_READ and VFIO_USER_DMA_WRITESwapnil Ingle3-2/+92
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-05dma: add api to validate dma regionSwapnil Ingle2-0/+21
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-01add test for VFIO_USER_DEVICE_GET_REGION_INFOSwapnil Ingle2-3/+27
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-01remove extra new line char from the logsSwapnil Ingle1-2/+2
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-30client: better output messagesSwapnil Ingle1-3/+3
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-30Fix the copy logic of sparse areasSwapnil Ingle1-6/+9
Also added some better logs messages Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-30Fix error return from dev_get_sparse_mmap_cap()Swapnil Ingle1-12/+10
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-29client: reviewed get_device_region_info()Swapnil Ingle1-20/+13
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-29Implementation of VFIO_USER_DEVICE_GET_REGION_INFOSwapnil Ingle2-37/+168
WIP: test sparse capability and add sample test for it Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-29Keep client dev_info for further useSwapnil Ingle1-9/+8
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-29implement VFIO_USER_REGION_READ/VFIO_USER_REGION_WRITEThanos Makatos3-31/+180
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-29fix typoThanos Makatos1-1/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-29remove unnecessary pause from sample clientThanos Makatos1-2/+0
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-29remove unused function map_dma from sample clientThanos Makatos1-6/+0
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-29introduce convinience function send_recv_vfio_user_msgThanos Makatos3-53/+44
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-28implement VFIO_USER_DEVICE_SET_IRQSThanos Makatos5-41/+300
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-28have process_request return -EINTRThanos Makatos1-0/+3
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-28Fix handling of VFIO_USER_DEVICE_GET_INFOSwapnil Ingle2-15/+27
vfio_device_info.argsz is set by the client and server is expected to use/validate it. Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-25implement VFIO_USER_DEVICE_GET_IRQ_INFOThanos Makatos3-21/+104
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-25implement VFIO_USER_DMA_UNMAPThanos Makatos2-24/+79
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-25remove extraneous newlineThanos Makatos1-1/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-24implement VFIO_USER_DMA_MAPThanos Makatos4-83/+203
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23libmuser: minor coding style fixesSwapnil Ingle1-27/+36
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-23Initial implementation of VFIO_USER_DEVICE_GET_INFOSwapnil Ingle2-1/+75
Initial client and server implementation of VFIO_USER_DEVICE_GET_INFO. Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-23Merge pull request #59 from swapnili/vfio-userswapnili1-4/+2
Fix catching error from init_sock
2020-09-23Fix catching error from init_sockSwapnil Ingle1-4/+2
init_sock() returns -errno, so no need to user errno variable to get the error value. Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-23start handling MAP_DMA, FDs not yet receivedThanos Makatos3-95/+147
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23refactor send/recv of message plus fixesThanos Makatos6-104/+239
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23drop extraneous newline from some log messagesThanos Makatos1-3/+3
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23drop newline from gpio logging functionThanos Makatos1-1/+1
libmuser always adds a newline Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23refactor initializing socket and setting version into separate functionsThanos Makatos1-15/+37
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23add simple client application for testing vfio-userThanos Makatos2-0/+114
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23exchange vfio-user version with clientThanos Makatos1-1/+101
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23don't assert on failure to initThanos Makatos1-2/+6
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23return error code when failing to attachThanos Makatos1-8/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23add vfio-user version supported by libmuserThanos Makatos1-0/+3
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-23rename command to cmdThanos Makatos1-1/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>