Page MenuHomeFreeBSD

D24837.id.diff
No OneTemporary

D24837.id.diff

Index: head/sys/amd64/vmm/x86.h
===================================================================
--- head/sys/amd64/vmm/x86.h
+++ head/sys/amd64/vmm/x86.h
@@ -41,6 +41,7 @@
#define CPUID_0000_000A (0xA)
#define CPUID_0000_000B (0xB)
#define CPUID_0000_000D (0xD)
+#define CPUID_0000_0015 (0x15)
#define CPUID_8000_0000 (0x80000000)
#define CPUID_8000_0001 (0x80000001)
#define CPUID_8000_0002 (0x80000002)
Index: head/sys/amd64/vmm/x86.c
===================================================================
--- head/sys/amd64/vmm/x86.c
+++ head/sys/amd64/vmm/x86.c
@@ -560,6 +560,18 @@
}
break;
+ case CPUID_0000_0015:
+ /*
+ * Don't report CPU TSC/Crystal ratio and clock
+ * values since guests may use these to derive the
+ * local APIC frequency..
+ */
+ regs[0] = 0;
+ regs[1] = 0;
+ regs[2] = 0;
+ regs[3] = 0;
+ break;
+
case 0x40000000:
regs[0] = CPUID_VM_HIGH;
bcopy(bhyve_id, &regs[1], 4);

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 24, 12:47 PM (5 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27893004
Default Alt Text
D24837.id.diff (954 B)

Event Timeline