summaryrefslogtreecommitdiff
path: root/include/sysemu/hostmem.h
diff options
context:
space:
mode:
authorHu Tao <hutao@cn.fujitsu.com>2014-06-10 19:15:19 +0800
committerMichael S. Tsirkin <mst@redhat.com>2014-06-19 18:44:20 +0300
commitbd9262d95f9172a5f4897aeea341c219a6c6cf96 (patch)
tree32f8d88adff799545a71253f6cbdb08cbb60ba08 /include/sysemu/hostmem.h
parent58f4662c6c98a9fd05519745661177792d7aeede (diff)
downloadqemu-bd9262d95f9172a5f4897aeea341c219a6c6cf96.tar.gz
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>
Diffstat (limited to 'include/sysemu/hostmem.h')
-rw-r--r--include/sysemu/hostmem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/hostmem.h b/include/sysemu/hostmem.h
index 4fc081eb17..923f6721d2 100644
--- a/include/sysemu/hostmem.h
+++ b/include/sysemu/hostmem.h
@@ -34,6 +34,8 @@ typedef struct HostMemoryBackendClass HostMemoryBackendClass;
*/
struct HostMemoryBackendClass {
ObjectClass parent_class;
+
+ void (*alloc)(HostMemoryBackend *backend, Error **errp);
};
/**