Henry Wang
e6b1e3892b
xen/arm, libxl: Implement XEN_DOMCTL_shadow_op for Arm
...
This commit implements the `XEN_DOMCTL_shadow_op` support in Xen
for Arm. The p2m pages pool size for xl guests is supposed to be
determined by `XEN_DOMCTL_shadow_op`. Hence, this commit:
- Introduces a function `p2m_domctl` and implements the subops
`XEN_DOMCTL_SHADOW_OP_SET_ALLOCATION` and
`XEN_DOMCTL_SHADOW_OP_GET_ALLOCATION` of `XEN_DOMCTL_shadow_op`.
- Adds the `XEN_DOMCTL_SHADOW_OP_SET_ALLOCATION` support in libxl.
Therefore enabling the setting of shadow memory pool size
when creating a guest from xl and getting shadow memory pool size
from Xen.
Note that the `XEN_DOMCTL_shadow_op` added in this commit is only
a dummy op, and the functionality of setting/getting p2m memory pool
size for xl guests will be added in following commits.
This is part of CVE-2022-33747 / XSA-409.
Signed-off-by: Henry Wang <Henry.Wang@arm.com >
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org >
master commit: cf2a68d2ff
master date: 2022-10-11 14:28:42 +0200
2022-10-11 15:52:02 +02:00
..
2012-08-01 12:46:52 +01:00
2019-05-15 16:19:45 +01:00
2013-12-09 15:20:12 +00:00
2013-12-09 15:20:12 +00:00
2013-10-10 15:48:55 +01:00
2018-10-30 17:03:23 +00:00
2012-10-05 14:34:30 +01:00
2012-10-08 11:45:29 +01:00
2019-03-12 14:24:53 +00:00
2019-11-19 16:44:33 +00:00
2019-03-12 14:24:53 +00:00
2014-07-10 13:06:55 +01:00
2018-01-25 11:35:21 +00:00
2019-01-11 14:57:52 +00:00
2022-10-11 15:51:26 +02:00
2018-08-17 16:40:50 +01:00
2016-09-30 11:47:27 +01:00
2022-10-11 15:52:02 +02:00
2016-09-30 11:47:27 +01:00
2017-09-28 15:28:01 +01:00
2017-09-22 16:29:18 +01:00
2018-01-25 11:35:14 +00:00
2017-03-16 18:25:16 +00:00
2016-12-12 09:48:07 +00:00
2019-09-20 10:42:41 +01:00
2019-09-20 10:42:41 +01:00
2017-03-14 11:36:52 +00:00
2019-09-20 10:41:01 +01:00
2015-08-05 10:40:35 +01:00
2022-07-12 16:33:19 +01:00
2017-02-16 12:47:12 +00:00
2021-03-18 15:07:59 +01:00
2019-11-25 10:43:32 +00:00
2022-08-03 14:19:37 +02:00
2019-11-18 22:58:44 +00:00
2019-11-18 22:58:44 +00:00
2021-03-18 15:07:59 +01:00
2019-10-24 16:08:41 +01:00
2019-11-18 22:58:44 +00:00
2019-11-18 22:58:48 +00:00
2018-10-08 15:20:18 +01:00
2019-01-11 14:57:52 +00:00
2015-03-05 17:06:43 +00:00
2019-11-18 22:58:26 +00:00
2018-11-06 15:41:24 +00:00
2016-07-12 12:49:41 +01:00
2019-11-18 22:59:51 +00:00
2021-03-18 15:07:59 +01:00
2019-01-11 14:57:52 +00:00
2018-08-21 12:16:02 +01:00
2015-05-21 14:59:17 +01:00
2015-06-25 10:59:08 +01:00
2019-01-18 14:22:36 +00:00
2020-11-09 17:48:16 +00:00
2018-11-06 15:41:24 +00:00
2018-01-25 11:35:14 +00:00
2022-08-03 14:19:37 +02:00
2016-12-03 15:57:34 +00:00
2015-07-15 11:22:53 +01:00
2016-07-13 14:24:02 +01:00
2016-02-26 15:14:47 +00:00
2016-10-24 11:53:20 +01:00
2017-03-15 10:22:33 +00:00
2018-07-16 16:09:14 +01:00
2019-11-18 23:01:10 +00:00
2018-01-18 11:32:51 +00:00
2018-03-30 12:51:55 +01:00
2019-11-18 22:59:51 +00:00
2016-04-01 14:33:16 +01:00
2019-09-20 10:42:41 +01:00
2017-09-26 11:10:08 +01:00
2017-09-26 11:10:08 +01:00
2017-10-11 12:20:17 +01:00
2018-03-21 16:24:58 +00:00
2016-04-01 11:07:28 +08:00
2017-09-28 15:28:02 +01:00
2017-09-28 15:28:02 +01:00
2015-07-15 11:40:43 +01:00
2015-07-15 11:40:43 +01:00
2015-07-15 11:40:44 +01:00
2014-02-06 14:21:30 +00:00
2019-05-13 11:28:27 +01:00
2019-11-25 10:42:56 +00:00
2019-11-29 21:44:42 +00:00
2019-11-18 22:58:44 +00:00
2022-10-11 15:51:26 +02:00
2019-10-24 16:08:41 +01:00
2016-04-08 15:07:17 +01:00
2016-04-20 14:34:04 +01:00
2019-09-20 10:41:01 +01:00
2019-11-25 10:42:56 +00:00
2016-12-03 15:57:35 +00:00
2019-09-20 10:41:01 +01:00
2019-09-20 10:41:01 +01:00
2018-04-23 14:31:05 +01:00
2016-09-28 14:32:05 +01:00
2022-10-11 15:51:26 +02:00
2019-06-28 11:54:52 +01:00
2019-09-17 16:12:47 +02:00
2019-11-29 21:44:42 +00:00
2019-09-20 12:20:02 +01:00
2019-09-20 12:20:02 +01:00
2019-09-20 12:20:02 +01:00
2019-09-20 12:20:02 +01:00
2019-09-20 12:20:02 +01:00
2019-09-20 12:20:02 +01:00
2019-09-20 12:20:02 +01:00
2019-11-29 21:44:42 +00:00
2012-08-06 12:28:03 +01:00
2016-12-13 20:25:25 +00:00
2016-12-13 20:25:25 +00:00
2016-12-13 20:25:25 +00:00
2014-06-17 10:08:57 +01:00
2019-09-20 12:20:02 +01:00
2020-11-09 17:48:16 +00:00
2013-10-10 15:48:55 +01:00
2019-11-29 21:44:42 +00:00
2019-09-19 12:24:56 +01:00
2011-10-12 16:21:32 +01:00
2015-07-15 11:40:43 +01:00
2015-07-15 11:40:43 +01:00
2015-07-15 16:02:33 +01:00
2014-02-06 14:21:30 +00:00
2019-05-15 16:19:45 +01:00
2017-03-14 14:13:14 +00:00