Displaying 2 results from an estimated 2 matches for "apic_rdmsr".
2011 Nov 03
2
xen-unstable fails to boot on a system with Ivy Bridge stepping C0 cpu
...idge stepping C0 CPU, it is stuck on CPU initialization.
I''ve added some tracing to apic writes/reads and traced it so far to sending INIT IPI.
(XEN) HVM: VMX enabled
(XEN) HVM: Hardware Assisted Paging detected.
(XEN) Setting warm reset code and vector.
(XEN) apic_wrmsr (0x280,0x0)
(XEN) apic_rdmsr(0x280) = 0x0
(XEN) Asserting INIT.
(XEN) apic_wrmsr (0x300,0x10000c500)
After this ^^^^ write BSP becomes VERY slow and it takes several minutes
till it gets to sending STARTUP IPI:
(XEN) Sending STARTUP #1.
(XEN) apic_wrmsr (0x280,0x0)
(XEN) apic_rdmsr(0x280) = 0x0
(XEN) After apic_write.
(XEN)...
2012 Dec 12
7
[PATCH V5] x86/kexec: Change NMI and MCE handling on kexec path
...k here rather than
+ * wandering back into regular Xen code.
*/
- if ( cpu == crashing_cpu )
- return 1;
- local_irq_disable();
+ switch ( current_local_apic_mode() )
+ {
+ u32 apic_id;
- kexec_crash_save_cpu();
+ case APIC_MODE_X2APIC:
+ apic_id = apic_rdmsr(APIC_ID);
- __stop_this_cpu();
+ apic_wrmsr(APIC_ICR, APIC_DM_NMI | APIC_DEST_PHYSICAL | ((u64)apic_id << 32));
+ break;
- atomic_dec(&waiting_for_crash_ipi);
+ case APIC_MODE_XAPIC:
+ apic_id = GET_xAPIC_ID(apic_mem_read(APIC_ID));
+
+ while ( api...