Re: [PATCH] tools/libxl: Only access legacy altp2m on HVM

2025-05-13 Thread Jason Andryuk
On 2025-05-13 03:27, Jan Beulich wrote: On 13.05.2025 01:54, Jason Andryuk wrote: 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

Re: [PATCH] tools/libxl: Only access legacy altp2m on HVM

2025-05-13 Thread Jan Beulich
On 13.05.2025 01:54, Jason Andryuk wrote: > 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 defa