mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 13:53:54 -06:00
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>
This commit is contained in:
parent
41d54dc09f
commit
d5dbde4645
5 changed files with 6 additions and 6 deletions
|
@ -633,7 +633,7 @@ void memory_region_init_resizeable_ram(MemoryRegion *mr,
|
|||
uint64_t length,
|
||||
void *host),
|
||||
Error **errp);
|
||||
#ifdef __linux__
|
||||
#ifdef CONFIG_POSIX
|
||||
|
||||
/**
|
||||
* memory_region_init_ram_from_file: Initialize RAM memory region with a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue