[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Question about printk implementation.
I was looking over the implementation of printk (xenunstable) and I have a question about the spin_lock_recursive use and the static "buf" variable in this routine. Suppose that that in a single processor system the hypervisor is printing using this printk routine and has acquired the console_lock. Is it possible for a high level interrupt, like an NMI (just as an example, any other interrupts that preempt the current work in the hypervisor will do), to come in and then use printk. Because we are in single CPU mode, the spin_lock_recursive will succeed (if I interpreted the code correctly). When the higher level interrupt exits and returns to the hypervisor code that was previously printing, the contents of the static "buf" would have changed. Is this a possibility?? _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |