Files
xen/tools
Jason Andryuk 01dfd25509 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>
2025-06-02 10:31:21 +02:00
..
2024-09-04 16:06:21 +02:00
2025-04-07 12:16:43 +02:00
2025-04-25 11:47:05 +02:00
2025-04-22 11:25:48 +02:00
2024-05-15 19:59:52 +01:00
2025-02-21 14:55:13 +00:00
2024-09-04 16:07:41 +02:00