diff mbox

[6/9] exec: remove qemu_set_ram_fd()

Message ID 1460462129-17363-7-git-send-email-marcandre.lureau@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marc-André Lureau April 12, 2016, 11:55 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

If the previous ivshmem patch is applied, qemu_set_ram_fd() is no longer used.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 exec.c                  | 10 ----------
 include/exec/ram_addr.h |  1 -
 2 files changed, 11 deletions(-)
diff mbox

Patch

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);