freebsd-dev/sys/x86/xen
Roger Pau Monné a78e46a7db xen: take struct size into account for video information
The xenpf_dom0_console_t structure can grow as more data is added, and
hence we need to check that the fields we accesses have been filled by
Xen.  The only extra field FreeBSD currently uses is the top 32 bits
for the frame buffer physical address.

Note that this field is present in all the versions that make the
information available from the platform hypercall interface, so the
check here is mostly cosmetic, and to remember us that newly added
fields require checking the size of the returned data.

Fixes: 6f80738b22 ('xen: fetch dom0 video console information from Xen')
Sponsored by: Citrix Systems R&D
2023-03-14 09:59:08 +01:00
..
hvm.c Fix various places which cast a pointer to a vm_paddr_t or vice versa. 2022-10-03 16:10:41 -07:00
pv.c xen: take struct size into account for video information 2023-03-14 09:59:08 +01:00
xen_apic.c xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
xen_intr.c xen: bump used interface version 2023-03-09 17:13:17 +01:00