From: Marc-André Lureau <marcandre.lur...@redhat.com> If the previous ivshmem patch is applied, qemu_set_ram_fd() is no longer used.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- exec.c | 10 ---------- include/exec/ram_addr.h | 1 - 2 files changed, 11 deletions(-) diff --git a/exec.c b/exec.c index 8675b5e..ec72064 100644 --- a/exec.c +++ b/exec.c @@ -1873,16 +1873,6 @@ int qemu_get_ram_fd(ram_addr_t addr) return fd; } -void qemu_set_ram_fd(ram_addr_t addr, int fd) -{ - RAMBlock *block; - - rcu_read_lock(); - block = qemu_get_ram_block(addr); - block->fd = fd; - rcu_read_unlock(); -} - void *qemu_get_ram_block_host_ptr(ram_addr_t addr) { RAMBlock *block; diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h index 153f1b2..3a21aee 100644 --- a/include/exec/ram_addr.h +++ b/include/exec/ram_addr.h @@ -109,7 +109,6 @@ RAMBlock *qemu_ram_alloc_resizeable(ram_addr_t size, ram_addr_t max_size, void *host), MemoryRegion *mr, Error **errp); int qemu_get_ram_fd(ram_addr_t addr); -void qemu_set_ram_fd(ram_addr_t addr, int fd); void *qemu_get_ram_block_host_ptr(ram_addr_t addr); void qemu_ram_free(RAMBlock *block); -- 2.5.5