diff options
| author | Paolo Bonzini | 2014-06-10 13:15:23 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-06-19 17:44:20 +0200 |
| commit | a35ba7be4b696d4c7b47318fd2022e6c3eca0a63 (patch) | |
| tree | f206d1f7d758c159e96724fb066c8c6c3d38c57b /include/sysemu | |
| parent | hostmem: add merge and dump properties (diff) | |
| download | qemu-a35ba7be4b696d4c7b47318fd2022e6c3eca0a63.tar.gz qemu-a35ba7be4b696d4c7b47318fd2022e6c3eca0a63.tar.xz qemu-a35ba7be4b696d4c7b47318fd2022e6c3eca0a63.zip | |
hostmem: allow preallocation of any memory region
And allow preallocation of file-based memory even without -mem-prealloc.
Some care is necessary because -mem-prealloc does not allow disabling
preallocation for hostmem-file.
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')
| -rw-r--r-- | include/sysemu/hostmem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/hostmem.h b/include/sysemu/hostmem.h index ede5ec90c7..4cae673c4b 100644 --- a/include/sysemu/hostmem.h +++ b/include/sysemu/hostmem.h @@ -53,6 +53,7 @@ struct HostMemoryBackend { /* protected */ uint64_t size; bool merge, dump; + bool prealloc, force_prealloc; MemoryRegion mr; }; |
