memory: use a new FlatView pointer on every topology update
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 May 2013 08:29:07 +0000 (10:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jul 2013 15:42:49 +0000 (17:42 +0200)
commita9a0c06dd750cca982f21089099207874b960656
tree8701ed77a3ea885f467a3892df7def6f2d31ab5d
parent99e86347fe960b95514531f84282438ae4e6ca64
memory: use a new FlatView pointer on every topology update

This is the first step towards converting as->current_map to
RCU-style updates, where the FlatView updates run concurrently
with uses of an old FlatView.

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