memory: Pass mr into snapshot_and_clear_dirty
authorPeter Xu <peterx@redhat.com>
Mon, 3 Jun 2019 06:50:50 +0000 (14:50 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jul 2019 13:39:02 +0000 (15:39 +0200)
commit5dea4079ad6f17527674785b39e840718bb18c62
tree004d53d4ecd6f35c01fd2c8d72d2dbae4d234ed7
parentad37f24d57a81020ceba4c966563b1ad7c7199e3
memory: Pass mr into snapshot_and_clear_dirty

Also we change the 2nd parameter of it to be the relative offset
within the memory region. This is to be used in follow up patches.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20190603065056.25211-6-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
exec.c
include/exec/ram_addr.h
memory.c