Age | Commit message (Collapse) | Author | Files | Lines |
|
Fix the return values type
|
|
muser_cmd.mmap.response is unsigned and should not be used to return
errors, instead use muser_cmd.err
Also fixed the code path to use valid errno values.
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
|
|
1> Use errno for the failures
2> Use signed types for the returned variables
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
page_has_type() seems to be an internal function and
it's not critically usefull anyway
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
|
|
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
|
|
_IOW means userland is writing and kernel is reading
_IOR means userland is reading and kernel is writing
MUSER_DEV_CMD_WAIT should be _IOR as userland waits to read
cmd from kernel.
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
|
|
Remove various spurious whitespaces and empty lines. Some other
alignment issues, too.
Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
|
|
|
|
|
|
Need to explain why.
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
|
|
|
|
Currently muser/libmuser_write() expects mucmd as buffer, while
muser/libmuser_read() expects data buffer.
We arleady have the mucmd in mudev->pending, so make
muser/libmuser_write() to take data buffer instead of mucmd.
This way libmuser_{read,write} are consistent and we do not use mucmd
sent by user.
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
|
|
--Fix addr passed to vm_insert_page()
The addr passed to vm_insert_page() should start from vm_start and
incremented by PAGE_SIZE
hence 'i' must be used in the calculation and not cur_pgidx(which is the
index to fond the page)
--Add new pages index to new_pgs
new_pgs[] is an array of newly allocated pages, it is used for the
cleanup in case of failure. It must be populated by the page_index of
new allocated pages.
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
|
|
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
|
|
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
|
|
|