diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-10 19:15:24 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2014-06-19 18:44:20 +0300 |
| commit | dbcb8981183592be129b2e624b7bcd4245e75fbc (patch) | |
| tree | 639391848fc2cb66c281fb7e8a9fae377bee87f1 /numa.c | |
| parent | a35ba7be4b696d4c7b47318fd2022e6c3eca0a63 (diff) | |
| download | focaccia-qemu-dbcb8981183592be129b2e624b7bcd4245e75fbc.tar.gz focaccia-qemu-dbcb8981183592be129b2e624b7bcd4245e75fbc.zip | |
hostmem: add property to map memory with MAP_SHARED
A new "share" property can be used with the "memory-file" backend to map memory with MAP_SHARED instead of MAP_PRIVATE. 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 'numa.c')
| -rw-r--r-- | numa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numa.c b/numa.c index 8af9c916ac..711f6825cb 100644 --- a/numa.c +++ b/numa.c @@ -231,7 +231,7 @@ static void allocate_system_memory_nonnuma(MemoryRegion *mr, Object *owner, if (mem_path) { #ifdef __linux__ Error *err = NULL; - memory_region_init_ram_from_file(mr, owner, name, ram_size, + memory_region_init_ram_from_file(mr, owner, name, ram_size, false, mem_path, &err); /* Legacy behavior: if allocation failed, fall back to |