Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142779915
D24837.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
954 B
Referenced Files
None
Subscribers
None
D24837.id.diff
View Options
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, ®s[1], 4);
File Metadata
Details
Attached
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)
Attached To
Mode
D24837: Hide host CPUID 0x15 TSC/Crystal ratio/freq info from guest.
Attached
Detach File
Event Timeline
Log In to Comment