vmm: set highest cpuid feature leaf based on host cpu.
authordv <dv@openbsd.org>
Wed, 4 Sep 2024 16:12:40 +0000 (16:12 +0000)
committerdv <dv@openbsd.org>
Wed, 4 Sep 2024 16:12:40 +0000 (16:12 +0000)
commitc8c95121f802c4f6a63edc7145ec493573589639
tree06c3ade0930514e0c57c9224ce8f7017312b6ff2
parent5f0faded709e9cacb8e00f47f9087349b51fc5b9
vmm: set highest cpuid feature leaf based on host cpu.

Fixes Linux guests on older Intel hardware. vmm was reporting a
value that doesn't match the host. Cap it at the highest value vmm
currently emulates.

ok bluhm@, ratchov@
sys/arch/amd64/amd64/vmm_machdep.c