Files
xen/xen
Roger Pau Monné 5f640b6213 x86/dom0: correctly set the maximum ->iomem_caps bound for PVH
The logic in dom0_setup_permissions() sets the maximum bound in
->iomem_caps unconditionally using paddr_bits, which is not correct for HVM
based domains.  Instead use domain_max_paddr_bits() to get the correct
maximum paddr bits for each possible domain type.

Switch to using PFN_DOWN() instead of PAGE_SHIFT, as that's shorter.

Fixes: 53de839fb4 ('x86: constrain MFN range Dom0 may access')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: a00e08799c
master date: 2025-03-05 10:26:46 +0100
2025-03-20 13:30:30 +01:00
..
2017-03-06 17:49:45 +01:00
2023-09-11 09:37:33 +02:00
2024-02-27 13:56:25 +01:00
2022-05-02 08:50:39 +02:00
2025-01-21 09:27:05 +01:00