Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/arch
Module Name: src
Committed By: bouyer
Date: Wed Sep 3 16:14:52 UTC 2025
Modified Files:
src/sys/arch/amd64/amd64: locore.S
src/sys/arch/i386/i386: locore.S
src/sys/arch/xen/xen: hypervisor.c
Log Message:
Our PVH bootstrap code assumed that the hvm_start_info structure provided
by Xen is just after the end of the symbol case. With Xen 4.20 it's not
always the case, so:
- get the symbol table size from the first byte of the symbol table area
provided by Xen. As we don't know if there is a symbol table or not,
do a minimal sanity check on the size.
- if the hvm_start_info structure is not in the page after kernel_end or
esym, copy it there (this was already done in the genpvh case). While
there, if we copy we can easily compute the size and not assume it all fits
in one page.
With this, a NetBSD PVH dom0 can boot on Xen 4.20
To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 src/sys/arch/amd64/amd64/locore.S
cvs rdiff -u -r1.201 -r1.202 src/sys/arch/i386/i386/locore.S
cvs rdiff -u -r1.99 -r1.100 src/sys/arch/xen/xen/hypervisor.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index