aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-11-25Split log setup from lm_create_ctx() to lm_setup_log() (#126)swapnili5-12/+42
* Split log setup from lm_create_ctx() to lm_setup_log() Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-11-25introduce cmocka unit test framework and first unit testThanos Makatos6-2/+100
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-25ignore DMA map/unmap if device isn't using DMA controllerThanos Makatos1-4/+4
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-24fix compile with gcc 4.8.5John Levon1-4/+4
2020-11-24fix a comment referencing the kernel moduleJohn Levon1-1/+1
2020-11-24Api refactoring (#115)swapnili14-530/+662
API refactoring
2020-11-24clean up headersJohn Levon22-118/+237
Introduce include/ dir for public headers, and clean up include guards etc.
2020-11-24get_request_sock: set nr_fds always (#116)John Levon1-0/+2
2020-11-24refactor sock send/recv functions (#114)John Levon6-141/+217
Use shorter, more readable, function names, add re-jig the wrappers such that the most common operations are shortest.
2020-11-24parse VFIO_USER_VERSION JSON stanzaJohn Levon11-86/+239
2020-11-23move IRQ into separate fileThanos Makatos4-390/+476
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23silence false positive Coverity warningThanos Makatos1-0/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23don't ignore return value from functionThanos Makatos1-2/+6
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23don't attempt to close invalid file desriptorThanos Makatos1-1/+3
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23don't dereference NULL pointerThanos Makatos1-1/+5
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23fix printf argsThanos Makatos5-29/+31
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23don't pass -1 to fstatThanos Makatos1-0/+10
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23don't omit argument from printfThanos Makatos1-1/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23silence false positive coverity about out-of-bounds writeThanos Makatos1-2/+2
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-23don't leak fd on failureThanos Makatos1-0/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20Merge pull request #109 from tmakatos/live-migrationswapnili7-123/+157
don't expose live migration as device region
2020-11-20don't expose migration as regionThanos Makatos7-111/+145
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20don't attach before initializing the DMA controllerThanos Makatos1-12/+12
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20drop pci_info from lm_ctxThanos Makatos4-34/+44
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20document how to create release buildThanos Makatos1-0/+4
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20don't assume debug build for running server sampleThanos Makatos1-5/+12
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20silence false-positive -Wmaybe-uninitialized warning in GCC 7Thanos Makatos1-1/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-20move migration into separate fileThanos Makatos7-420/+550
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-19enable assert() in release builds (#98)John Levon9-18/+35
2020-11-19refactor socket code into lib/tran_sock.[ch] (#97)John Levon12-749/+786
2020-11-18implement new negotiation implementationJohn Levon4-108/+254
Refactor for a partial re-implementation of initial vfio-user negotiation. Still needs to do the JSON parsing - in the meantime, hard-code the max_fds parameters we expect.
2020-11-18samples/server.c: add _GNU_SOURCE for aligned_alloc()John Levon1-0/+1
2020-11-18document how to run client/server sampleThanos Makatos1-0/+31
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18implement migration resuming on destination serverThanos Makatos4-129/+476
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: replace fprintf(stdout, ...) with printf for simplicityThanos Makatos1-7/+7
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18samples/client: use err/errx for simplicityThanos Makatos1-205/+119
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-18assorted fixesThanos Makatos1-14/+26
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18don't swallow original reason why bind(2) failsThanos Makatos1-1/+2
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18client/server sample: trigger IRQ based on alarmThanos Makatos2-74/+80
This avoid having to manually send USR1 to the server. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18remove commented out headerThanos Makatos1-1/+0
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18don't assert on error, instead respond with the relevant bit setThanos Makatos3-6/+19
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-18small cleanups post-muser.ko removalJohn Levon5-14/+9
2020-11-18add a github-recognised LICENSE fileJohn Levon1-4/+27
Now we no longer have kernel code, we can explicitly use the github-recognised LICENSE text.
2020-11-18Merge pull request #92 from swapnili/masterswapnili10-707/+45
Cleanup and warning fixes
2020-11-17remove test_dma_map.c,test_mmap.c and test_read.cSwapnil Ingle4-682/+0
Those files were intended for kmod. No use for vfio-user. Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-11-17Fix compiler errors for non-dbg buildSwapnil Ingle6-25/+45
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
2020-11-16Merge pull request #90 from tmakatos/masterThanos2-18/+29
misc fixes
2020-11-16log message for bad bitmaps flagThanos Makatos1-0/+1
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
2020-11-16validate argszThanos Makatos2-12/+22
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>