Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177374120
D61316.1794229774.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
801 B
Referenced Files
None
Subscribers
None
D61316.1794229774.diff
View Options
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
@@ -131,14 +131,15 @@
break;
case CPUID_8000_0008:
cpuid_count(func, param, regs);
- if (vmm_is_svm()) {
- /*
- * As on Intel (0000_0007:0, EDX), mask out
- * unsupported or unsafe AMD extended features
- * (8000_0008 EBX).
- */
- regs[1] &= AMDFEID_CLZERO | AMDFEID_XSAVEERPTR;
+ /*
+ * As with 0000_0007:0 EDX, mask out unsupported or
+ * unsafe extended features in 8000_0008 EBX. These
+ * are AMD-defined, but an outer hypervisor may also
+ * report them on Intel hosts.
+ */
+ regs[1] &= AMDFEID_CLZERO | AMDFEID_XSAVEERPTR;
+ if (vmm_is_svm()) {
vm_get_topology(vm, &sockets, &cores, &threads,
&maxcpus);
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 9, 1:09 PM (17 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41607861
Default Alt Text
D61316.1794229774.diff (801 B)
Attached To
Mode
D61316: vmm: Mask CPUID leaf 0x80000008 EBX on Intel hosts as well
Attached
Detach File
Event Timeline