qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] memory: cleanup users of memory_region_get_ram_addr
@ 2016-03-24 11:03 Paolo Bonzini
  2016-03-24 11:03 ` [Qemu-devel] [PATCH 1/2] memory: remove unnecessary masking of MemoryRegion ram_addr Paolo Bonzini
  2016-03-24 11:03 ` [Qemu-devel] [PATCH 2/2] memory: hide mr->ram_addr from qemu_get_ram_ptr users Paolo Bonzini
  0 siblings, 2 replies; 14+ messages in thread
From: Paolo Bonzini @ 2016-03-24 11:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: arei.gonglei, famz, mst

The result of memory_region_get_ram_addr is often added in the
caller of qemu_get_ram_ptr and then subtracted in qemu_get_ram_ptr;
avoid the indirection.  Prompted by mst's remark on confusion
between hwaddr and ram_addr_t.

Paolo

Paolo Bonzini (2):
  memory: remove unnecessary masking of MemoryRegion ram_addr
  memory: hide ram_addr_t from qemu_get_ram_ptr users

 exec.c                       | 49 +++++++++++++++-----------------------------
 include/exec/memory.h        |  1 -
 memory.c                     |  7 +++----
 migration/savevm.c           |  4 ++--
 scripts/dump-guest-memory.py | 19 +++--------------
 translate-all.c              |  3 +--
 6 files changed, 25 insertions(+), 58 deletions(-)

-- 
1.8.3.1

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

end of thread, other threads:[~2016-04-04  9:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-24 11:03 [Qemu-devel] [PATCH 0/2] memory: cleanup users of memory_region_get_ram_addr Paolo Bonzini
2016-03-24 11:03 ` [Qemu-devel] [PATCH 1/2] memory: remove unnecessary masking of MemoryRegion ram_addr Paolo Bonzini
2016-03-25  6:20   ` Fam Zheng
2016-04-03 13:48   ` Michael S. Tsirkin
2016-03-24 11:03 ` [Qemu-devel] [PATCH 2/2] memory: hide mr->ram_addr from qemu_get_ram_ptr users Paolo Bonzini
2016-03-25  6:20   ` Fam Zheng
2016-03-25 11:58     ` Paolo Bonzini
2016-03-25 12:13       ` Fam Zheng
2016-03-25 12:19         ` Paolo Bonzini
2016-04-03 13:49   ` Michael S. Tsirkin
2016-04-03 17:14     ` Paolo Bonzini
2016-04-04  8:03     ` Paolo Bonzini
2016-04-04  8:38       ` Michael S. Tsirkin
2016-04-04  9:02         ` 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).