]> git.proxmox.com Git - mirror_qemu.git/commit - hw/misc/ivshmem.c
ivshmem: use ram_from_fd()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 2 Jun 2017 14:12:25 +0000 (18:12 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Jun 2017 09:04:05 +0000 (11:04 +0200)
commit8381d89bec0ca233c45c03939735e6eb89aab022
tree3b59838292b82baca3b90e4406345f2437a48081
parentfea617c58b777495b9285f3dc6b33f2898352886
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>
hw/misc/ivshmem.c