Files
xen/tools/libs/light
Jason Andryuk 0cd774e8c2 tools/libxl: Only access legacy altp2m on HVM
Only access the HVM union b_info->u.hvm on HVM guests.  The union
access is not guarded, so this reads and sets the default even on
non-HVM guests.  Usually this doesn't matter as PV and PVH unions are
smaller and zero-initialized, but the zero default will be re-written as
a -1 boolean.  Generally, it could incorrectly set b_info->altp2m
through aliased data.

Fixes: 0291089f6e ("xen: enable altp2m at create domain domctl")
Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
Acked-by: Anthony PERARD <anthony.perard@vates.tech>
master commit: 01dfd25509
master date: 2025-06-02 10:31:21 +0200
2025-06-26 08:36:29 +02:00
..
2024-05-20 17:01:20 +01:00
2022-06-01 09:18:49 +02:00
2022-06-01 09:18:49 +02:00
2024-12-02 09:52:05 +01:00
2021-01-29 22:50:08 +00:00