From 7029ec408711d99849df019fa16c536b4845b8ba Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 12 Jul 2022 04:52:38 +0000 Subject: [PATCH] allow cpuid 0x8000001d, cache topology on AMD ok mlarkin@ --- sys/arch/amd64/amd64/vmm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index e813d0630a6..84da19438b7 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.317 2022/07/12 04:46:00 jsg Exp $ */ +/* $OpenBSD: vmm.c,v 1.318 2022/07/12 04:52:38 jsg Exp $ */ /* * Copyright (c) 2014 Mike Larkin * @@ -7253,6 +7253,12 @@ vmm_handle_cpuid(struct vcpu *vcpu) *rcx = 0; *rdx = edx; break; + case 0x8000001d: /* cache topology (AMD) */ + *rax = eax; + *rbx = ebx; + *rcx = ecx; + *rdx = edx; + break; default: DPRINTF("%s: unsupported rax=0x%llx\n", __func__, *rax); *rax = 0; -- 2.20.1