diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2019-06-13 06:57:18 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2019-06-13 06:57:18 +0000 |
commit | b4c81482f43c8bac6f8caf40f8d8b78ec96ba373 (patch) | |
tree | 4f0fa8f6fe0af068a0e88ff62b953a01077979e6 /sys/arch/amd64 | |
parent | 12b794b8624d95e6979761c99675f8625f081056 (diff) |
vmm(4): Pass through CPUID function/leaf 0x16 for processor speed.
ok deraadt, pd, phessler
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/vmm.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index 4ffb2ff899f..0edc104ad60 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.245 2019/05/17 19:07:15 guenther Exp $ */ +/* $OpenBSD: vmm.c,v 1.246 2019/06/13 06:57:17 mlarkin Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> * @@ -6419,13 +6419,11 @@ vmm_handle_cpuid(struct vcpu *vcpu) *rdx = 0; } break; - case 0x16: /* Processor frequency info (not supported) */ - DPRINTF("%s: function 0x16 (frequency info) not supported\n", - __func__); - *rax = 0; - *rbx = 0; - *rcx = 0; - *rdx = 0; + case 0x16: /* Processor frequency info */ + *rax = eax; + *rbx = ebx; + *rcx = ecx; + *rdx = edx; break; case 0x40000000: /* Hypervisor information */ *rax = 0; |