diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-07-12 04:52:39 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-07-12 04:52:39 +0000 |
commit | 24b0fae5c94c85da4548af606a4d2271a27ea7bf (patch) | |
tree | 615221b1aaa83eed6438247e9699d8b25f595ad5 /sys | |
parent | 711f536968179be7be2eb1c5ddc815d6bcab626e (diff) |
allow cpuid 0x8000001d, cache topology on AMD
ok mlarkin@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/vmm.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <mlarkin@openbsd.org> * @@ -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; |