softmmu/physmem: Fix qemu_ram_remap() to handle shared anonymous memory
commitdbb92eea3857ffeb770d006ad0306e408d33dd62
authorDavid Hildenbrand <david@redhat.com>
Tue, 6 Apr 2021 08:01:26 +0000 (6 10:01 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Jun 2021 18:27:37 +0000 (15 20:27 +0200)
tree5aa3c8d0091acba2116dea7a426416a0eead5120
parentcdfa56c551bb48f286cfe1f2daa1083d333ee45d
softmmu/physmem: Fix qemu_ram_remap() to handle shared anonymous memory

RAM_SHARED now also properly indicates shared anonymous memory. Let's check
that flag for anonymous memory as well, to restore the proper mapping.

Fixes: 06329ccecfa0 ("mem: add share parameter to memory-backend-ram")
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210406080126.24010-4-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
softmmu/physmem.c