diff options
| author | Hu Tao | 2014-06-10 13:15:19 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-06-19 17:44:20 +0200 |
| commit | bd9262d95f9172a5f4897aeea341c219a6c6cf96 (patch) | |
| tree | 32f8d88adff799545a71253f6cbdb08cbb60ba08 /include | |
| parent | backend:hostmem: replace hostmemory with host_memory (diff) | |
| download | qemu-bd9262d95f9172a5f4897aeea341c219a6c6cf96.tar.gz qemu-bd9262d95f9172a5f4897aeea341c219a6c6cf96.tar.xz qemu-bd9262d95f9172a5f4897aeea341c219a6c6cf96.zip | |
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')
| -rw-r--r-- | include/sysemu/hostmem.h | 2 |
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); }; /** |
