Displaying 5 results from an estimated 5 matches for "pcpu_get".
2005 May 02
0
[PATCH] update evtchn for SMP
...o_irq[MAX_VIRT_CPUS][NR_VIRQS];
+static int ipi_to_evtchn[MAX_VIRT_CPUS][NR_VIRQS];
+
/* Reference counts for bindings to IRQs. */
static int irq_bindcount[NR_IRQS];
@@ -120,7 +121,7 @@
mtx_lock(&irq_mapping_update_lock);
- if ( (irq = virq_to_irq[virq]) == -1 )
+ if ( (irq = PCPU_GET(virq_to_irq)[virq]) == -1 )
{
op.cmd = EVTCHNOP_bind_virq;
op.u.bind_virq.virq = virq;
@@ -132,7 +133,7 @@
evtchn_to_irq[evtchn] = irq;
irq_to_evtchn[irq] = evtchn;
- virq_to_irq[virq] = irq;
+ PCPU_GET(virq_to_irq)[virq] = ir...
2011 Jun 02
0
Debian 6.0 + Xen4.0 + FreeBSD hvm amd64 -> fpudna: fpcurthread == curthread XXXX times
...n@freebsd.org; I applied a suggestion from Mr. K. Belousov :
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c
index 08e5e57..a5ee853 100644
--- a/sys/amd64/amd64/fpu.c
+++ b/sys/amd64/amd64/fpu.c
@@ -394,14 +394,8 @@ fpudna(void)
struct pcb *pcb;
critical_enter();
- if (PCPU_GET(fpcurthread) == curthread) {
- printf("fpudna: fpcurthread == curthread %d times\n",
- ++err_count);
- stop_emulating();
- critical_exit();
- return;
- }
- if (PCPU_GET(fpcurthread) != NULL) {
+ if (PCPU_GET(fpcurthread) != NULL&&
+...
2013 Jul 07
1
Shutdown hangs on unmount of a gjournaled file system in 8-Stable
.../usr/src/sys/kern/sched_ule.c:1932
(kgdb) thread 158
[Switching to thread 158 (Thread 100002)]#0
sched_switche(td=0xffffff000235e8e0,
newtd=<value optimized out>, flags=<value optimized out>) at
/usr/src/sys/kern/sched_ule.c:1932
1932 cpuid = PCPU_GET(cpuid);
(kgdb) bt
#0 sched_switch (td=0xffffff000235e8e0, newtd=<value optimized out>,
flags=<value optimized out>)
at /usr/src/sys/kern/sched_ule.c:1932
#1 0xffffffff80407836 in mi_switch (flags=260, newtd=0x0) at
/usr/src/sys/kern/kern_syn...
2013 Oct 28
5
FreeBSD PVH guest support
...SR_SF_MASK, PSL_NT|PSL_T|PSL_I|PSL_C|PSL_D);
/* Disable local APIC just to be sure. */
- lapic_disable();
+ if (!lapic_disabled)
+ lapic_disable();
/* signal our startup to the BSP. */
mp_naps++;
@@ -733,7 +737,7 @@ init_secondary(void)
/* A quick check from sanity claus */
cpuid = PCPU_GET(cpuid);
- if (PCPU_GET(apic_id) != lapic_id()) {
+ if (!lapic_disabled && PCPU_GET(apic_id) != lapic_id()) {
printf("SMP: cpuid = %d\n", cpuid);
printf("SMP: actual apic_id = %d\n", lapic_id());
printf("SMP: correct apic_id = %d\n", PCPU_GET(apic_id));...
2013 Mar 06
1
Strange reboot since 9.1
Hello,
Since FreeBSD 9.1 I have strange problems with the distribution. Some
servers are rebooting without any kernel panic, instanly. First i
thought it's a problem with my KVM system, but one of my FreeBSD under a
Dell R210 have the same problem.
The servers concerned are now:
- Monitoring server
- LDAP test server
- Some other servers, randomly (not in production).
First i thought it's