From: marcandre.lureau@redhat.com
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, "Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [Qemu-devel] [PATCH 6/9] exec: remove qemu_set_ram_fd()
Date: Tue, 12 Apr 2016 13:55:26 +0200 [thread overview]
Message-ID: <1460462129-17363-7-git-send-email-marcandre.lureau@redhat.com> (raw)
In-Reply-To: <1460462129-17363-1-git-send-email-marcandre.lureau@redhat.com>
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 --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
next prev parent reply other threads:[~2016-04-12 11:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-12 11:55 [Qemu-devel] [PATCH 0/9] RFC: add memfd memory backend marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 1/9] exec: check kvm mmu notifiers earlier marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 2/9] exec: split file_ram_alloc() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 3/9] exec: split qemu_ram_alloc_from_file() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 4/9] Add memory_region_init_ram_from_fd() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 5/9] RFC: ivshmem: use ram_from_fd() marcandre.lureau
2016-04-12 11:55 ` marcandre.lureau [this message]
2016-04-12 11:55 ` [Qemu-devel] [PATCH 7/9] memfd: split qemu_memfd_alloc() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 8/9] Add memfd based hostmem marcandre.lureau
2016-04-12 13:07 ` Igor Mammedov
2016-04-12 13:32 ` Marc-André Lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 9/9] tests: use memfd in vhost-user-test marcandre.lureau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1460462129-17363-7-git-send-email-marcandre.lureau@redhat.com \
--to=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).