tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PVH boot with qemu



On Mon, 13 Nov 2023, Manuel Bouyer wrote:

On Mon, Nov 13, 2023 at 06:37:01AM +0100, Emile `iMil' Heitor wrote:
The start_xen32 entrypoint is then found, and the kernel start, but falls in
an infinite loop in locore.S when mapping symbols and preloaded modules,
more precisely, in the fillkpt_nox macro. I assume %ecx is wrong or the region
corrupted for some reason. https://github.com/NetBSD/src/blob/trunk/sys/arch/amd64/amd64/locore.S#L738

I don't think you can use start_xen32 as is, as it expects a Xen environnemwnt.
You may need to write a new start routine, or make a difference between Xen
vs non-Xen in the existing one.

It seems we have a similar problem to the second bullet point Colin Percival
noted here https://www.daemonology.net/blog/2022-10-18-FreeBSD-Firecracker.html
When removing the hvm_start_info address save portion, the sym mapping
doesn't fall into an infinite loop anymore.
Not yet sure how to fix that, I'll have a look at FreeBSD's commits on this
matter.

------------------------------------------------------------------------
Emile `iMil' Heitor <imil@{home.imil.net,NetBSD.org}> | https://imil.net



Home | Main Index | Thread Index | Old Index