[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-4.15] x86/mem_sharing: copy parent VM's hostp2m's max_mapped_pfn during forking


  • To: Tamas K Lengyel <tamas.lengyel@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Fri, 26 Mar 2021 15:04:21 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=POZK0SEB8+3+pl+ZTLR6JNgeKpAxwiaBERHnA7valOk=; b=gAFXZ9XcxnLk3PS3OlIUU/ev/lm9IwwCLKMph2b/rzJyGT09Dqvfa36h6ypq6JoQ3Svwn6UGIf/DDr4KCo9tTcsB+ldrU1VgbOs5k/Q3W130Ldp4IOo+nwFucOBOsbR89VIZqaSSLLxxPAuP4xKLw/D+wqVbch7VhzWgXFssWYQV+80qJIcOq8PMyHr1KO9rWw2H6WP5lz2FCM18GpyAxoZkOWbMiIJ48aAmStVor1MqW3890vAY6RKDZK708PZhNnmWLcwFPbnEDXnu6y/nu+2SmRfJFjkGa/KT/Q9DaEPu9IPL08VBeAXAM/PRLoyOlK3IcwqdiFv/6fDveS8wDQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lYdhipyOeDdCZbsbLfuMM8wdS+69ehSznJEoHU669nBcFOTBcbTe37RPac9t6The+3YppEnAsScKH0KSw2NotfLA88kXjKyA+OyciqJw/P61AvX3UE0pTBTRCi58k02jhX7Np3U+XD8ZVeunie2zkADPetdP48GWdMK6J9+HRNKwjU9ls29qRM0MEym8Qku+hl3jeXlc0/PnmPmTnQW9lOhXPkaHUvTG1B6B9/grYzbl0r99oUl3uF9Yt3JcW+DQqLVvtR8TiIafO8Ay1ZgY+hjSZZ5jyA9m5/KjGI4vXdfUz9YoSUahnEpXUkPbF3JbFQeX+ejpq0tMHLf1j2ne4Q==
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 26 Mar 2021 15:04:34 +0000
  • Ironport-hdrordr: A9a23:2Mrp0K4MJj+xanJBjwPXwSeFI+orLtY04lQ7vn1ZYSd+NuSFis Gjm+ka3xfoiDAXHEotg8yEJbPoexLh3LZPy800Ma25VAfr/FGpIoZr8Jf4z1TbdRHW3tV2kZ 1te60WMrLNJHBxh8ri/U2cG9Ev3NGI/MmT9Jrj5l1qShxnbLwlyg9/BBqSHEEefng7ObMSEp 2A6s1b4wexYHh/VLX2OlApV/XOzue77a7OTgUBA3ccmWuzpBOurIX3Ch2JmioZOgk/u4sK1U jgv0jH6r64s/e9oyWsmFP7y5hNgtPuxp9iKaW3+7AoAw7hgAqpe4htMofq1FpZzIHfi2oCq9 XCrwwtOM5+8RrqDxqIiCDgxhX613IW42LioGXyvVLYvcf7SDgmYvAx4b5xTxrD50Is+PF63a 5btljp0aZ/MBLakCzxo+XPThFh/3DExkYKrOh7tQ07baIuLJtq6aAP9kJcF5kNWAjg7po8Le VoBMbAoN5LbFKzdRnizydS6e3pek52MgaNQ0AEtMDQ+SNRhmpFw0wRw9Fatmsc9ag6V4JP64 3/Q+VVvYALavVTQbN2Be8HT8fyIHfKWwjwPGWbJkmiM60bJXTXqdrS7K8u7O+nPLwEpaFC2K jpYRd9jyofakjuAcqB0Nlg6RbWWliwWjzr14VQ/J58trrgRKf6MCG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4KvrKklpBfzxhrcVMrFSo7hz/81e89gu v81/XWRuH4CXDnfVgG4iVIA4Zoniot7WFMGvLOn66Vc0ESDKoPBfB6+4Vd1DRuoVL350cHbx psuhczv7u9WWDPLjB5D+z2gYDygBIEv6CM5F1luWVIljqc+SKhkkmwm9zwpmE9oGLcpBJ2sK mRRDM+hyBCqw5sqJYRR0alQCrrWnOKMFT+0asuNzlkEAkUupUWsCY=
  • Ironport-sdr: iHIIWWgkd1Hjdb4FE2sQJEaWGliFqc2Yq/uhh8oP/o2E2UKpAgeBLUZAZC/AdUz95i0nGZQ5MZ /eJ87Y0+oN7GvOTKpI4kR4Ts1SlKT7d7BjhQ31jA+wiMlbzteCnVIjheSTWTZ+7poiBs3naK2o BTvHqyYsSnvGX1H/wSn2zkgORZKRC7PsViIzSGCaaEMG6JuJjb8I5RyKyAaTmhz+jOtnOtUvEh IOEdtuarcdnoDiIPfiVzptVFhskQzWr42oL6eodqllMdGjJwdYoRGE51y+VYEv2oPcYCEe99dR WJM=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18/03/2021 21:36, Tamas K Lengyel wrote:
> 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@xxxxxxxxx>

Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.