diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-06-02 18:12:25 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-06-15 11:04:05 +0200 |
commit | 8381d89bec0ca233c45c03939735e6eb89aab022 (patch) | |
tree | 3b59838292b82baca3b90e4406345f2437a48081 /memory.c | |
parent | fea617c58b777495b9285f3dc6b33f2898352886 (diff) |
ivshmem: use ram_from_fd()
Instead of having its own mmap handling code, reuse the code from
exec.c.
Note: memory_region_init_ram_from_fd() adds some restrictions
(check for xen, kvm sync-mmu, etc) and changes (such as size
alignment). This may actually be more correct.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170602141229.15326-6-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'memory.c')
0 files changed, 0 insertions, 0 deletions