[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3] x86+libxl: correct p2m (shadow) memory pool size calculation
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Wed, 27 Apr 2022 13:19:26 +0200
- 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WXyimPO8GqWMB0c+fniYlSrLe26pCV/voCpPA6FK4u8=; b=Tpl6oHOS9hQ0nY472LSVHepbSGI+PPyuCDJLCp9nryNekcVPrkw7wCtWLigyKKQ0ArgpA2IXp/haar6wyrCJQykyDKlzYmVwMpgwIBXp7dGgPauJfxEfgYQCBP+T/N1sLaPGl6WdJwtOKgkmQnMNyayuq2Bdv06vm+oCYT2RucmNRAIr6dHg2Nmqvj2FdAqmWbOMHOeqp+UOjtpBfXhd8uOCYL14rzzZvXgJvlRAIg6xtkuTzMoLbS53U2x7IZImId17aQT7+OFvzl6wDToPmieU/eG1E3aswyb0ARLJFzXfhWf0/xKZcvUrXQmzQWlMOgXUMfAnLyPBeBjHyLMZxg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kxT88RWJNaAwQXsd0sRfhcuCU8iCj5+HBviiZSKzG8mvP+ngW0Sfe9RAMJqHHkjsWnxEyvKAq651IgkeVRR4weRZxPO9JtETTQhM4AOGCezdC3u51KvAMqGAAEBVnQ1+EeDL4tWKK+NoubHJaihWCSytMTouGVRQOBoZD+bimfgug2sgRi0ND9QtY+P0HV+ZxpM0zd40/XBG8c8ot0MLIY78KzG59OpmKxOX0jC0EvK5WTBob+Jpbqk4WKjwgTm3rNxy6gWf8WrGO7LmosOTrYqL0fmxF7nLuNJOSQNkQVNEtL1ISKXl0r1zNi0ekUn948fnDQ/doUyMHepkPltQwA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
- Delivery-date: Wed, 27 Apr 2022 11:19:52 +0000
- Ironport-data: A9a23:Pypr3qrX71Vqep9u8Jw3tlq879VeBmIfZBIvgKrLsJaIsI4StFCzt garIBmDbv2DNDH0eo92Ooixo0sGucTTmNYxTgA4qys9QigV95uZCYyVIHmrMnLJJKUvbq7GA +byyDXkBJppJpMJjk71atANlVEliefQAOCU5NfsYkidfyc9IMsaoU8lyrZRbrJA24DjWVvR4 42q+KUzBXf+s9JKGjNMg068gEsHUMTa4Fv0aXRnOJinFHeH/5UkJMp3yZOZdhMUcaENdgKOf M7RzanRw4/s10xF5uVJMFrMWhZirrb6ZWBig5fNMkSoqkAqSicais7XOBeAAKv+Zvrgc91Zk b1wWZKMpQgBI5DsssU4dwtkMzBjJot49+XVHSOhiJnGp6HGWyOEL/RGKmgTZNVd1sMpRGZE+ LofNSwHaQ2Fi6Su2rWnR+Jwh8Mlas72IIcYvXImxjbcZRokacmbH+OWupkFjHFp3psm8fX2P qL1bRJ1axvNeVtXM0o/A5Mihua4wHL4dlW0rXrL9PZtsjSKkGSd1pDIP/+WR92sZf9Wh3SXi z6d9lv1GQMFYYn3JT2ttyjEavX0tSHxVZ8WFba43uV3m1DVzWsWYDUGWF3+rfSnh0qWX9NEN 1dS6icotbI19kGgUp/6RRLQiGGAlg4RXZxXCeJSwAOC0K3P+C6CG3MJCDVGbbQbWNQeQDUr0 hqFmo3vDDk26LmNEyvFrfGTsC+4PjUTISkafygYQAAZ4t7l5oYukhbISdUlG6mw5jHoJQzNL /mxhHBWr90uYQQjjs1XIXivb+qQm6X0
- Ironport-hdrordr: A9a23:fWcrOqMKhjn/wMBcT1P155DYdb4zR+YMi2TDiHoddfUFSKalfp 6V98jztSWatN/eYgBEpTmlAtj5fZq6z+8P3WBxB8baYOCCggeVxe5ZjbcKrweQeBEWs9Qtr5 uIEJIOd+EYb2IK6voSiTPQe7hA/DDEytHPuQ639QYQcegAUdAF0+4WMHf4LqUgLzM2eKbRWa Dsr/Zvln6FQzA6f867Dn4KU6zqoMDKrovvZVojCwQ84AeDoDu04PqieiLolSs2Yndq+/MP4G LFmwv26uGKtOy68AbV0yv2445NkNXs59NfDIini9QTKB/rlgG0Db4RE4GqjXQQmqWC+VwqmN 7Dr1MJONly0WrYeiWPrR7ky2DboUITwk6n7WXdrWrooMT/Sj5/IdFGn5hlfhzQ7FdllM1g0Y pQtljp+KZ/PFflpmDQ9tLIXxZlmg6funw5i9MeiHRZTM83dKJRl4oC50lYea1wUB4S0LpXUd WGMfuspMq/KTihHjPkVyhUsZGRt00Ib1m7qhNogL3W79BU9EoJunfwivZv20voz6hNOqWs19 60TJiAq4s+PvP+TZgNc9vpEvHHfFAkf3r3QRGvCGWiMp07EFTwjLOyyIkJxYiRCe41Jd0J6d 78bG8=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed, Apr 27, 2022 at 12:57:17PM +0200, Jan Beulich wrote:
> The reference "to shadow the resident processes" is applicable to
> domains (potentially) running in shadow mode only. Adjust the
> calculations accordingly. This, however, requires further parameters.
> Since the original function is deprecated anyway, and since it can't be
> changed (for being part of a stable ABI), introduce a new (internal
> only) function, with the deprecated one simply becoming a wrapper.
>
> In dom0_paging_pages() also take the opportunity and stop open-coding
> DIV_ROUND_UP().
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Thanks.
|