memory: alloc RAM from file at offset
commit44a4ff31c01082ffce08ec3b9a87a4fdf15919d5
authorJagannathan Raman <jag.raman@oracle.com>
Fri, 29 Jan 2021 16:46:04 +0000 (29 11:46 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 9 Feb 2021 20:53:56 +0000 (9 20:53 +0000)
tree12d221ae0ba47bf3a853248b3b42bae208a07c6b
parent639090d85057e7e8251e2509fa136f1a2384f131
memory: alloc RAM from file at offset

Allow RAM MemoryRegion to be created from an offset in a file, instead
of allocating at offset of 0 by default. This is needed to synchronize
RAM between QEMU & remote process.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Signed-off-by: John G Johnson <john.g.johnson@oracle.com>
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 609996697ad8617e3b01df38accc5c208c24d74e.1611938319.git.jag.raman@oracle.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
backends/hostmem-memfd.c
hw/misc/ivshmem.c
include/exec/memory.h
include/exec/ram_addr.h
include/qemu/mmap-alloc.h
softmmu/memory.c
softmmu/physmem.c
util/mmap-alloc.c
util/oslib-posix.c