aboutsummaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-06-02 18:12:26 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2017-06-15 11:04:05 +0200
commit6b9911d0b6508b5fe4efa55d4f3bc9bc851c73a2 (patch)
tree06225de1558f6c5dc614b6353eb545e2ff5f21ca /memory.c
parent8381d89bec0ca233c45c03939735e6eb89aab022 (diff)
memory: remove memory_region_set_fd
Now unnecessary since ivshmem uses memory_region_init_ram_from_fd. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20170602141229.15326-7-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/memory.c b/memory.c
index b2ace20bac..e08fa0ae6c 100644
--- a/memory.c
+++ b/memory.c
@@ -1851,16 +1851,6 @@ int memory_region_get_fd(MemoryRegion *mr)
return fd;
}
-void memory_region_set_fd(MemoryRegion *mr, int fd)
-{
- rcu_read_lock();
- while (mr->alias) {
- mr = mr->alias;
- }
- mr->ram_block->fd = fd;
- rcu_read_unlock();
-}
-
void *memory_region_get_ram_ptr(MemoryRegion *mr)
{
void *ptr;