Andrew Cooper
97e34ad22d
tools/dombuilder: Don't allocate dom->p2m_host[] for translated domains
...
xc_dom_p2m() and dom->p2m_host[] implement a linear transform for translated
domains, but waste a substantial chunk of RAM doing so.
ARM literally never reads dom->p2m_host[] (because of the xc_dom_translated()
short circuit in xc_dom_p2m()). Drop it all.
x86 HVM does use dom->p2m_host[] for xc_domain_populate_physmap_exact() calls
when populating 4k pages. Reuse the same tactic from 2M/1G ranges and use an
on-stack array instead. Drop the memory allocation.
x86 PV guests do use dom->p2m_host[] as a non-identity transform. Rename the
field to pv_p2m to make it clear it is PV-only.
No change in the constructed guests.
Reported-by: Varad Gautam <vrd@amazon.de >
Reported-by: Julien Grall <julien.grall@arm.com >
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com >
Acked-by: Wei Liu <wl@xen.org >
2020-01-07 12:46:03 +00:00
..
2020-01-07 12:46:03 +00:00
2010-08-24 18:42:59 +01:00
2019-12-20 16:08:00 +00:00
2019-09-04 16:17:39 +01:00
2013-12-04 14:02:10 +00:00
2017-09-05 17:35:57 +01:00
2017-10-11 12:20:17 +01:00
2015-07-29 11:14:07 +01:00
2017-10-11 12:20:17 +01:00
2015-07-29 11:14:07 +01:00
2019-03-20 16:52:01 +00:00
2017-10-11 12:20:17 +01:00
2019-04-09 19:34:41 +01:00
2020-01-03 18:37:25 +00:00
2017-02-16 12:47:10 +00:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2018-01-25 12:26:55 +01:00
2020-01-07 12:46:03 +00:00
2015-07-29 11:14:07 +01:00
2015-09-28 17:28:35 +02:00
2020-01-07 12:46:03 +00:00
2016-09-19 17:03:20 +01:00
2018-01-16 18:34:04 +00:00
2020-01-07 12:46:03 +00:00
2014-11-25 15:53:53 +00:00
2013-04-22 12:46:30 +01:00
2013-04-22 12:46:30 +01:00
2014-07-04 09:47:01 +01:00
2014-07-18 13:38:08 +01:00
2013-04-22 12:46:30 +01:00
2013-04-22 12:46:30 +01:00
2013-10-07 09:42:51 +02:00
2019-05-17 16:14:04 +01:00
2018-01-18 10:40:21 +00:00
2020-01-07 12:46:03 +00:00
2019-08-28 18:28:31 +01:00
2015-07-29 11:14:07 +01:00
2015-07-29 11:14:07 +01:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2016-01-22 12:24:19 +00:00
2015-07-29 11:14:07 +01:00
2016-01-22 12:22:27 +00:00
2017-10-11 12:20:17 +01:00
2016-01-22 12:23:30 +00:00
2017-01-18 09:55:49 +00:00
2015-07-29 11:14:07 +01:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2019-12-19 18:05:11 +00:00
2016-01-22 12:24:03 +00:00
2019-12-20 16:08:00 +00:00
2018-07-05 15:25:20 +02:00
2015-03-05 16:27:49 +00:00
2016-01-22 12:24:03 +00:00
2020-01-07 12:26:45 +00:00
2017-10-11 12:20:17 +01:00
2017-04-06 10:37:24 +01:00
2017-10-11 12:20:17 +01:00
2019-07-22 11:35:19 +02:00
2018-07-06 16:27:52 +01:00
2018-11-05 17:07:11 +00:00
2018-01-18 11:32:51 +00:00
2019-12-20 16:08:00 +00:00
2016-04-26 11:53:49 +02:00
2017-10-11 12:20:17 +01:00
2016-01-22 12:24:03 +00:00
2015-12-08 16:56:18 +00:00
2016-01-07 12:49:33 +00:00
2019-12-24 14:59:04 +00:00
2019-12-24 14:59:04 +00:00
2019-12-24 14:59:04 +00:00
2017-10-11 12:20:17 +01:00
2019-12-24 14:59:04 +00:00
2019-12-24 14:59:04 +00:00
2020-01-03 18:37:25 +00:00
2019-12-24 14:59:04 +00:00
2019-12-24 14:59:04 +00:00
2020-01-07 12:26:45 +00:00
2019-12-24 14:59:04 +00:00
2017-10-11 12:20:17 +01:00
2016-02-18 11:42:59 +00:00
2019-03-12 12:57:13 +00:00
2017-03-15 10:31:16 +00:00
2017-03-14 14:13:14 +00:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2016-04-26 11:53:49 +02:00