memory: access FlatView from a local variable
commit99e86347fe960b95514531f84282438ae4e6ca64
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 May 2013 08:26:13 +0000 (6 10:26 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jul 2013 15:42:49 +0000 (4 17:42 +0200)
tree86b4925c59450fbcf49628cec2007b7402346f6b
parent5444e768ee1abe6e021bece19a9a932351f88c88
memory: access FlatView from a local variable

We will soon require accesses to as->current_map to be placed under
a lock (with reference counting so as to keep the critical section
small).  To simplify this change, always fetch as->current_map into
a local variable and access it through that variable.

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c