aboutsummaryrefslogtreecommitdiff
path: root/samples/server.c
AgeCommit message (Collapse)AuthorFilesLines
2020-12-02introduce device typeThanos Makatos1-1/+2
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-30Misc cleanup (#138)swapnili1-1/+1
* Rename vfu_ctx_destroy() to vfu_destroy_ctx() * Remove unused function copy_sparse_mmap_area() * Coding style fixes Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com>
2020-11-30Update API's to accept sparse mmap areas as array and its count (#134)swapnili1-16/+8
* Pass region mmap areas as array * Pass migration sparse mmap areas as array * Move struct vfu_sparse_mmap_areas to lib/priv.h Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-27rename to libvfio-user (#128)John Levon1-59/+60
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-25PCI regions idx enum renamed to start with LM_PCI (#125)swapnili1-2/+2
* PCI regions idx enum renamed to start with LM_PCI Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-11-25Split log setup from lm_create_ctx() to lm_setup_log() (#126)swapnili1-1/+6
* Split log setup from lm_create_ctx() to lm_setup_log() Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-11-24Api refactoring (#115)swapnili1-46/+59
API refactoring
2020-11-24clean up headersJohn Levon1-4/+4
Introduce include/ dir for public headers, and clean up include guards etc.
2020-11-23silence false positive Coverity warningThanos Makatos1-0/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23fix printf argsThanos Makatos1-2/+2
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20don't expose migration as regionThanos Makatos1-17/+11
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20drop pci_info from lm_ctxThanos Makatos1-0/+3
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-19enable assert() in release builds (#98)John Levon1-3/+6
2020-11-19refactor socket code into lib/tran_sock.[ch] (#97)John Levon1-1/+2
2020-11-18samples/server.c: add _GNU_SOURCE for aligned_alloc()John Levon1-0/+1
2020-11-18implement migration resuming on destination serverThanos Makatos1-17/+109
This patch implements resuming on the destination server. We also demonstrate how to do this in the client/server sample. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18samples/server: use err/errx for simplicityThanos Makatos1-29/+17
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18client/server sample: trigger IRQ based on alarmThanos Makatos1-6/+13
This avoid having to manually send USR1 to the server. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18small cleanups post-muser.ko removalJohn Levon1-3/+2
2020-11-17Fix compiler errors for non-dbg buildSwapnil Ingle1-9/+19
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-11-13samples/server: don't complain for failure when device reaches stopped ↵Thanos Makatos1-1/+1
migration state Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-12Fix issues pointed by CFLAGS "-Wall -Werror -Wextra"Swapnil Ingle1-13/+19
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-11-05experimental support for running the device state and copy iteration protocolThanos Makatos1-3/+73
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-10-29support for live migration region and dirty page loggingThanos Makatos1-2/+21
This patch adds support for the live migration region and dirty page logging following VFIO. Live migration is NOT yet functional as handling accesses to the migration region is not yet implemented. Currenty the live migration region is fixed at index 9 simply for simplifying the implementation. Dirty page logging is simplified by requiring IOVA ranges to match exactly the entire IOVA range. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-10-26samples/server: don't print invalid errno when failing to realize device ↵Thanos Makatos1-1/+2
emulation Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-10-22samples/server: don't include errnor when printing error via err(3)Thanos Makatos1-2/+2
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-10-22samples/server: don't use err(3) if errno hasn't been setThanos Makatos1-2/+4
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-10-07client, server changes for VFIO_USER_DEVICE_RESETSwapnil Ingle1-0/+6
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-07client, server changes for lm_irq_message()Swapnil Ingle1-0/+5
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-05Add test for VFIO_USER_DMA_READ and VFIO_USER_DMA_WRITESwapnil Ingle1-5/+95
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-10-01add test for VFIO_USER_DEVICE_GET_REGION_INFOSwapnil Ingle1-1/+25
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-09-29implement VFIO_USER_REGION_READ/VFIO_USER_REGION_WRITEThanos Makatos1-16/+37
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-09-28implement VFIO_USER_DEVICE_SET_IRQSThanos Makatos1-0/+160
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>