qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] More cleanups for RAMBlock/ram_addr_t vs. MemoryRegion
@ 2016-05-26  8:49 Paolo Bonzini
  2016-05-26  8:49 ` [Qemu-devel] [PATCH 1/4] memory: remove qemu_get_ram_fd, qemu_set_ram_fd, qemu_ram_block_host_ptr Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Paolo Bonzini @ 2016-05-26  8:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: arei.gonglei, mst, famz, marcandre.lureau

This removes some more cases where we unnecessarily go through
ram_addr_t.  Now that MemoryRegions have a RAMBlock pointer, it is
possible to keep reasoning in terms of MemoryRegion+offset everywhere,
except when managing dirty bitmaps and TCG TLB entries.  ram_addr.h
is now included only by cputlb.c, exec.c, kvm-all.c (for dirty bitmaps),
memory.c and migration/ram.c (also for dirty bitmaps).

The diffstat is lying, because some of the insertions actually come
from doc comments. :)

Paolo

Paolo Bonzini (4):
  memory: remove qemu_get_ram_fd, qemu_set_ram_fd,
    qemu_ram_block_host_ptr
  exec: remove ram_addr argument from qemu_ram_block_from_host
  memory: split memory_region_from_host from qemu_ram_addr_from_host
  exec: hide mr->ram_addr from qemu_get_ram_ptr users

 cputlb.c                     |   3 +-
 exec.c                       | 110 +++++++++++++------------------------------
 hw/misc/ivshmem.c            |   5 +-
 hw/virtio/vhost-user.c       |  25 +++++-----
 include/exec/cpu-common.h    |   4 +-
 include/exec/memory.h        |  36 ++++++++++++--
 include/exec/ram_addr.h      |   3 --
 memory.c                     |  39 +++++++++++----
 migration/postcopy-ram.c     |   3 +-
 scripts/dump-guest-memory.py |  19 ++------
 target-i386/kvm.c            |   6 ++-
 11 files changed, 122 insertions(+), 131 deletions(-)

-- 
2.5.5

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-05-26 15:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-26  8:49 [Qemu-devel] [PATCH 0/4] More cleanups for RAMBlock/ram_addr_t vs. MemoryRegion Paolo Bonzini
2016-05-26  8:49 ` [Qemu-devel] [PATCH 1/4] memory: remove qemu_get_ram_fd, qemu_set_ram_fd, qemu_ram_block_host_ptr Paolo Bonzini
2016-05-26 12:22   ` Marc-André Lureau
2016-05-26 15:37     ` Paolo Bonzini
2016-05-26  8:49 ` [Qemu-devel] [PATCH 2/4] exec: remove ram_addr argument from qemu_ram_block_from_host Paolo Bonzini
2016-05-26 13:19   ` Marc-André Lureau
2016-05-26  8:49 ` [Qemu-devel] [PATCH 3/4] memory: split memory_region_from_host from qemu_ram_addr_from_host Paolo Bonzini
2016-05-26 13:19   ` Marc-André Lureau
2016-05-26  8:49 ` [Qemu-devel] [PATCH 4/4] exec: hide mr->ram_addr from qemu_get_ram_ptr users Paolo Bonzini

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