Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154391082
D29132.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
548 B
Referenced Files
None
Subscribers
None
D29132.id.diff
View Options
diff --git a/sys/x86/x86/tsc.c b/sys/x86/x86/tsc.c
--- a/sys/x86/x86/tsc.c
+++ b/sys/x86/x86/tsc.c
@@ -503,6 +503,14 @@
if ((!smp_tsc && !tsc_is_invariant))
return (-100);
+ /*
+ * Misbehavior of TSC under VirtualBox has been observed. In
+ * particular, threads doing small (~1 second) sleeps may miss their
+ * wakeup and hang around in sleep state, causing hangs on shutdown.
+ */
+ if (vm_guest == VM_GUEST_VBOX)
+ return (0);
+
size = (mp_maxid + 1) * 3;
data = malloc(sizeof(*data) * size * N, M_TEMP, M_WAITOK);
adj = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 7:29 AM (8 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32287012
Default Alt Text
D29132.id.diff (548 B)
Attached To
Mode
D29132: x86: tsc: punish VirtualBox with low priority for TSC
Attached
Detach File
Event Timeline
Log In to Comment