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:   imil
Date:           Wed Apr 30 05:15:08 UTC 2025

Modified Files:
        src/sys/arch/amd64/amd64: machdep.c
        src/sys/arch/i386/i386: machdep.c
        src/sys/arch/x86/acpi: acpi_machdep.c
        src/sys/arch/x86/include: bootinfo.h
        src/sys/arch/x86/x86: consinit.c x86_autoconf.c x86_machdep.c
        src/sys/arch/xen/xen: hypervisor.c

Log Message:
Introduce pvh_boot boolean to identify the real hypervisor when booting in PVH
mode.

As of now, sys/arch/x86/x86/identcpu.c / identify_hypervisor() returns in the
case of vm_guest being VM_GUEST_GENPVH, yet this VM type is not an actual
hypervisor but an information recorded in locore.S to drive boot method.
We need to investigate what type of hypervisor is really running the VM in
order to apply specifics, so instead of relying on vm_guest_is_pvh() which only
checks for VM_GUEST_XENPVH || VM_GUEST_GENPVH, pvh_boot informs on the boot
method while allowing to identify the real hypervisor.

Idea ok'd by bouyer@, tested on Xen domU, Xen dom0 with GENERIC PVH and
qemu GENERIC PVH boot.


To generate a diff of this commit:
cvs rdiff -u -r1.374 -r1.375 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.846 -r1.847 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/x86/acpi/acpi_machdep.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/x86/include/bootinfo.h
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/x86/x86/consinit.c
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/x86/x86/x86_autoconf.c
cvs rdiff -u -r1.157 -r1.158 src/sys/arch/x86/x86/x86_machdep.c
cvs rdiff -u -r1.98 -r1.99 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