hostmem: separate allocation from UserCreatable complete method
commitbd9262d95f9172a5f4897aeea341c219a6c6cf96
authorHu Tao <hutao@cn.fujitsu.com>
Tue, 10 Jun 2014 11:15:19 +0000 (10 19:15 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 15:44:20 +0000 (19 18:44 +0300)
tree32f8d88adff799545a71253f6cbdb08cbb60ba08
parent58f4662c6c98a9fd05519745661177792d7aeede
hostmem: separate allocation from UserCreatable complete method

This allows the superclass to set various policies on the memory
region that the subclass creates. Drops hostmem-ram's complete method
accordingly.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
backends/hostmem-ram.c
backends/hostmem.c
include/sysemu/hostmem.h