diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-02-27 06:53:08 -0500 |
---|---|---|
committer | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-02-28 06:30:23 -0500 |
commit | 29868137a8469d5450cfa752b4fbb6ba4eae42d8 (patch) | |
tree | 01ebd3b10d350752bb6808755058d64fb0a299d6 /kmod | |
parent | 61935ed6c7f21a5a2559d7197e9b431b84b4654b (diff) | |
download | libvfio-user-29868137a8469d5450cfa752b4fbb6ba4eae42d8.zip libvfio-user-29868137a8469d5450cfa752b4fbb6ba4eae42d8.tar.gz libvfio-user-29868137a8469d5450cfa752b4fbb6ba4eae42d8.tar.bz2 |
keep reference to file backing DMA region
This is required for restartable device emulation.
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'kmod')
-rw-r--r-- | kmod/muser.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kmod/muser.c b/kmod/muser.c index 0765e1b..a0bc722 100644 --- a/kmod/muser.c +++ b/kmod/muser.c @@ -73,10 +73,8 @@ struct muser_dma_mapping { unsigned long iova; unsigned long length; unsigned long offset; - union { - struct file *file; /* only valid while operation is ongoing */ - int fd; /* required for unmap */ - }; + struct file *file; + int fd; struct list_head entry; }; |