Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151213273
D48187.id148362.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
830 B
Referenced Files
None
Subscribers
None
D48187.id148362.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
@@ -150,8 +150,6 @@
* pkg_id_shift and other OSes may rely on it.
*/
width = MIN(0xF, log2(threads * cores));
- if (width < 0x4)
- width = 0;
logical_cpus = MIN(0xFF, threads * cores - 1);
regs[2] = (width << AMDID_COREID_SIZE_SHIFT) | logical_cpus;
}
@@ -256,7 +254,7 @@
func = 3; /* unified cache */
break;
default:
- logical_cpus = 0;
+ logical_cpus = sockets * threads * cores;
level = 0;
func = 0;
break;
@@ -266,7 +264,7 @@
regs[0] = (logical_cpus << 14) | (1 << 8) |
(level << 5) | func;
regs[1] = (func > 0) ? (CACHE_LINE_SIZE - 1) : 0;
- regs[2] = 0;
+ regs[2] = 1; /* Num of cache ways */
regs[3] = 0;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 9:29 PM (15 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31050318
Default Alt Text
D48187.id148362.diff (830 B)
Attached To
Mode
D48187: bhyve: fix CPUID L3 Cache Size reporting for AMD/SVM
Attached
Detach File
Event Timeline
Log In to Comment