]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: Move FlatView allocation to a helper
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 21 Sep 2017 08:50:55 +0000 (18:50 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Sep 2017 21:19:37 +0000 (23:19 +0200)
commitcc94cd6d36602d976a5e7bc29134d1eaefb4102e
tree42f60c2259e5635773f09473b007bf4fd0cc0823
parent9a62e24f45bc97f8eaf198caf58906b47c50a8d5
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>
memory.c