diff options
author | 2019-06-13 06:57:17 +0000 | |
---|---|---|
committer | 2019-06-13 06:57:17 +0000 | |
commit | 1d21d1a65c956747a8f432020b3e9d4ff27fc123 (patch) | |
tree | bb47fe4460ec1e00ac1b4ff99db6a0721e99489d | |
parent | the rx drops field is 8 bits (and a 24 bit flow tag), not 32 bits. (diff) | |
download | wireguard-openbsd-1d21d1a65c956747a8f432020b3e9d4ff27fc123.tar.xz wireguard-openbsd-1d21d1a65c956747a8f432020b3e9d4ff27fc123.zip |
vmm(4): Pass through CPUID function/leaf 0x16 for processor speed.
ok deraadt, pd, phessler
-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; |