Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/arch/x86/x86
Module Name: src
Committed By: imil
Date: Thu May 1 06:01:47 UTC 2025
Modified Files:
src/sys/arch/x86/x86: identcpu.c
Log Message:
Avoid redundant and incorrect hypervisor detection in second
identify_hypervisor() call
The second call to identify_hypervisor() during autoconf needlessly repeats
hypervisor detection logic and could incorrectly override vm_guest values
(e.g., replacing VM_GUEST_KVM with VM_GUEST_VM). This change ensures that
if vm_guest is already set to a known hypervisor, the second pass skips
detection, preserving correct identification from the early call.
Tested on NetBSD/amd64, NetBSD/i386 with QEMU/KVM and QEMU/NVMM (BIOS and PVH),
Xen domU and Xen PVH.
To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/arch/x86/x86/identcpu.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