]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
hostmem-file: make available memory-backend-file on POSIX-based hosts
authorHikaru Nishida <hikarupsp@gmail.com>
Mon, 24 Sep 2018 12:32:05 +0000 (21:32 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 17:09:13 +0000 (19:09 +0200)
commitd5dbde4645fe56a1bcd678f85fa26c5548bcf552
tree5281ad000b7cf1c605014fd0274df878ac8589d1
parent41d54dc09f1f327dedc79d5ba0b1b437ab7b0e94
hostmem-file: make available memory-backend-file on POSIX-based hosts

Before this change, memory-backend-file object is valid for Linux hosts
only because hostmem-file.c is compiled only on Linux hosts.
However, other POSIX-based hosts (such as macOS) can support
memory-backend-file object in the same way as on Linux hosts.
This patch makes hostmem-file.c and related functions to be compiled on
all POSIX-based hosts to make available memory-backend-file on them.

Signed-off-by: Hikaru Nishida <hikarupsp@gmail.com>
Message-Id: <20180924123205.29651-1-hikarupsp@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
backends/Makefile.objs
backends/hostmem-file.c
exec.c
include/exec/memory.h
memory.c