Files
xen/tools/libxl
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
..
2013-10-10 15:48:55 +01:00
2012-10-05 14:34:30 +01:00
2018-03-30 12:51:55 +01:00
2017-09-26 11:10:08 +01:00
2017-09-26 11:10:08 +01:00
2016-04-20 14:34:04 +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
2013-10-10 15:48:55 +01:00
2019-09-19 12:24:56 +01:00
2011-10-12 16:21:32 +01:00