]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commit
x86/mem_sharing: copy parent VM's hostp2m's max_mapped_pfn during forking
authorTamas K Lengyel <tamas.lengyel@intel.com>
Fri, 26 Mar 2021 15:17:07 +0000 (16:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Mar 2021 15:17:07 +0000 (16:17 +0100)
commitf10c41537113dc2406c26cdf134403864df02a7d
tree6226dd4ab28727adda95d45b11c59171f16114e2
parent439085b2a797b627974f2bc224bdc19dc49b005d
x86/mem_sharing: copy parent VM's hostp2m's max_mapped_pfn during forking

When creating a VM fork copy the parent VM's hostp2m max_mapped_pfn value. Some
toolstack relies on the XENMEM_maximum_gpfn value to establish the maximum
addressable physical memory in the VM and for forks that have not yet been
unpaused that value is not going to reflect the correct max gpfn that's
possible to populate into the p2m. This patch fixes the issue.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/mm/mem_sharing.c