freebsd-dev/sys/x86
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
..
acpica amd64/efi: Stop falling back to hints for RSDP 2022-07-02 08:02:12 -06:00
bios x86: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
conf Complete retire cp(4) 2022-12-14 11:38:55 +08:00
cpufreq cpufreq: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:39:29 -07:00
include pvclock: Export a vDSO page even without rdtscp available 2023-02-03 11:48:25 -05:00
iommu kmem_malloc/free: Use void * instead of vm_offset_t for kernel pointers. 2022-09-22 15:09:19 -07:00
isa atrtc: expose power loss as sysctl 2023-02-02 08:25:08 +01:00
linux linux(4): Cleanup includes under x86/linux 2023-02-14 17:46:33 +03:00
pci Add NO_LEGACY_PCIB kernel option to i386, amd64 2022-10-17 23:02:22 -07:00
x86 abstract out the vm detection via smbios.. 2023-03-02 16:54:21 -08:00
xen xen: take struct size into account for video information 2023-03-14 09:59:08 +01:00