aboutsummaryrefslogtreecommitdiff
path: root/hw/remote/memory.c
diff options
context:
space:
mode:
authorYang Zhong <yang.zhong@intel.com>2021-07-09 13:28:00 +0800
committerCleber Rosa <crosa@redhat.com>2021-07-20 15:34:20 -0400
commitf4a3fda43e389fa26d41ec9cd24f42c5fe20ba9d (patch)
tree79ea1329e48d976f7ab6ba6cb6bfd4fc647daba9 /hw/remote/memory.c
parent074fca10c01a2e76d5bb3bf0cec377e809066a47 (diff)
downloadqemu-f4a3fda43e389fa26d41ec9cd24f42c5fe20ba9d.zip
qemu-f4a3fda43e389fa26d41ec9cd24f42c5fe20ba9d.tar.gz
qemu-f4a3fda43e389fa26d41ec9cd24f42c5fe20ba9d.tar.bz2
remote/memory: Replace share parameter with ram_flags
Fixes: d5015b801340 ("softmmu/memory: Pass ram_flags to qemu_ram_alloc_from_fd()") Signed-off-by: Yang Zhong <yang.zhong@intel.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Pankaj Gupta <pankaj.gupta@ionos.com> Reviewed-by: Peter Xu <peterx@redhat.com> Message-Id: <20210709052800.63588-1-yang.zhong@intel.com> Signed-off-by: Cleber Rosa <crosa@redhat.com>
Diffstat (limited to 'hw/remote/memory.c')
-rw-r--r--hw/remote/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/remote/memory.c b/hw/remote/memory.c
index 472ed2a..6e21ab1 100644
--- a/hw/remote/memory.c
+++ b/hw/remote/memory.c
@@ -46,7 +46,7 @@ void remote_sysmem_reconfig(MPQemuMsg *msg, Error **errp)
subregion = g_new(MemoryRegion, 1);
memory_region_init_ram_from_fd(subregion, NULL,
name, sysmem_info->sizes[region],
- true, msg->fds[region],
+ RAM_SHARED, msg->fds[region],
sysmem_info->offsets[region],
errp);