X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=memory.c;h=449a1429b946c57034a286d0f50cc43f321069ff;hb=024949caf32805f4cc3e7d363a80084b47aac1f6;hp=4b41fb837b40c7b0dc6b3bd979f0431ad1232863;hpb=e2fbe20851ceec5ccd7b539a89db0420393fb85d;p=mirror_qemu.git diff --git a/memory.c b/memory.c index 4b41fb837b..449a1429b9 100644 --- a/memory.c +++ b/memory.c @@ -1570,6 +1570,7 @@ void memory_region_init_ram_from_file(MemoryRegion *mr, struct Object *owner, const char *name, uint64_t size, + uint64_t align, bool share, const char *path, Error **errp) @@ -1578,6 +1579,7 @@ void memory_region_init_ram_from_file(MemoryRegion *mr, mr->ram = true; mr->terminates = true; mr->destructor = memory_region_destructor_ram; + mr->align = align; mr->ram_block = qemu_ram_alloc_from_file(size, mr, share, path, errp); mr->dirty_log_mask = tcg_enabled() ? (1 << DIRTY_MEMORY_CODE) : 0; }