Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167052186
D9786.id25660.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
871 B
Referenced Files
None
Subscribers
None
D9786.id25660.diff
View Options
Index: sys/x86/x86/mp_x86.c
===================================================================
--- sys/x86/x86/mp_x86.c
+++ sys/x86/x86/mp_x86.c
@@ -45,6 +45,7 @@
#ifdef GPROF
#include <sys/gmon.h>
#endif
+#include <sys/kdb.h>
#include <sys/kernel.h>
#include <sys/ktr.h>
#include <sys/lock.h>
@@ -1269,6 +1270,12 @@
CPU_CLR_ATOMIC(cpu, &started_cpus);
CPU_CLR_ATOMIC(cpu, &stopped_cpus);
+ /*
+ * We don't broadcast TLB invalidations to other CPUs when they are
+ * stopped. Hence, we clear the TLB before resuming.
+ */
+ invltlb_glob();
+
#if defined(__amd64__) && defined(DDB)
amd64_db_resume_dbreg();
#endif
@@ -1427,6 +1434,10 @@
uint32_t generation;
int cpu;
+ /* It is not necessary to signal other CPUs while in the debugger. */
+ if (kdb_active || panicstr != NULL)
+ return;
+
/*
* Check for other cpus. Return if none.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 8:01 PM (5 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36920562
Default Alt Text
D9786.id25660.diff (871 B)
Attached To
Mode
D9786: Fix "smp_targeted_tlb_shootdown: interrupts disabled" panics
Attached
Detach File
Event Timeline
Log In to Comment