OSDN Git Service

softmmu/memory: Pass ram_flags to qemu_ram_alloc_from_fd()
authorDavid Hildenbrand <david@redhat.com>
Mon, 10 May 2021 11:43:17 +0000 (13:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Jun 2021 18:27:38 +0000 (20:27 +0200)
commitd5015b80134047013eeec10000df5ce2014ee114
tree8d6eb31af866e5c142e8de786f98e96c8aade7cc
parentd01cbf82ce748955e622712356d8f56bc762ba9d
softmmu/memory: Pass ram_flags to qemu_ram_alloc_from_fd()

Let's pass in ram flags just like we do with qemu_ram_alloc_from_file(),
to clean up and prepare for more flags.

Simplify the documentation of passed ram flags: Looking at our
documentation of RAM_SHARED and RAM_PMEM is sufficient, no need to be
repetitive.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com> for memory backend and machine core
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210510114328.21835-5-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
backends/hostmem-memfd.c
hw/misc/ivshmem.c
include/exec/memory.h
include/exec/ram_addr.h
softmmu/memory.c