From 24b0fae5c94c85da4548af606a4d2271a27ea7bf Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Tue, 12 Jul 2022 04:52:39 +0000 Subject: allow cpuid 0x8000001d, cache topology on AMD ok mlarkin@ --- sys/arch/amd64/amd64/vmm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys') 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; -- cgit v1.2.3