Page MenuHomeFreeBSD

D61141.1794350131.diff
No OneTemporary

Authored By
Unknown
Size
754 B
Referenced Files
None
Subscribers
None

D61141.1794350131.diff

diff --git a/sys/amd64/vmm/x86.h b/sys/amd64/vmm/x86.h
--- a/sys/amd64/vmm/x86.h
+++ b/sys/amd64/vmm/x86.h
@@ -53,6 +53,7 @@
#define CPUID_8000_0008 (0x80000008)
#define CPUID_8000_001D (0x8000001D)
#define CPUID_8000_001E (0x8000001E)
+#define CPUID_8000_0022 (0x80000022)
/*
* CPUID instruction Fn0000_0001:
diff --git a/sys/amd64/vmm/x86.c b/sys/amd64/vmm/x86.c
--- a/sys/amd64/vmm/x86.c
+++ b/sys/amd64/vmm/x86.c
@@ -299,6 +299,17 @@
regs[3] = 0;
break;
+ case CPUID_8000_0022:
+ /*
+ * AMD uses this leaf to advertise performance
+ * counters and PerfMonV2. vmm implements neither.
+ */
+ regs[0] = 0;
+ regs[1] = 0;
+ regs[2] = 0;
+ regs[3] = 0;
+ break;
+
case CPUID_0000_0001:
do_cpuid(1, regs);

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 10, 10:35 PM (8 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41379853
Default Alt Text
D61141.1794350131.diff (754 B)

Event Timeline