mem_sharing: map shared_info page to same gfn during fork
authorTamas K Lengyel <tamas.lengyel@intel.com>
Thu, 30 Apr 2020 08:43:52 +0000 (10:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 30 Apr 2020 08:43:52 +0000 (10:43 +0200)
commit1a0000ac775faf8ef9efedd6068814d245f1dd8a
tree50e14be1427922872c05f7075733fda765a19e8c
parent5b58dad089880127674d460494d1a9d68109b3d7
mem_sharing: map shared_info page to same gfn during fork

During a VM fork we copy the shared_info page; however, we also need to ensure
that the page is mapped into the same GFN in the fork as its in the parent.

Suggested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Tamas K Lengyel <tamas.lengyel@intel.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/mm/mem_sharing.c