]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: Move FlatView allocation to a helper
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 21 Sep 2017 08:50:55 +0000 (18:50 +1000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 5 Dec 2017 03:54:44 +0000 (21:54 -0600)
commitde7e6815b84c797cbda56dc96fcacaf5f37d3a20
tree54afa37b1db9aff221e8076342d5f9c29cb9c351
parent1b04a1580917d9e41fd37ca62cbff9b4bf061e96
memory: Move FlatView allocation to a helper

This moves a FlatView allocation and initialization to a helper.
While we are nere, replace g_new with g_new0 to not to bother if we add
new fields in the future.

This should cause no behavioural change.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-Id: <20170921085110.25598-4-aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit cc94cd6d36602d976a5e7bc29134d1eaefb4102e)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
memory.c