[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] The scenario of hypercall_preempt_check()
Hi all, I found there is hypercall preemption check in some hypercall handlers:Â
#define hypercall_preempt_check() (unlikely( Â Â\ Â Â Â Â softirq_pending(smp_processor_id()) | Â \ Â Â Â Â local_events_need_delivery() Â Â Â Â Â Â\ Â Â )) Generally speaking, if there is pending softirq or upcall events, the hypercall handler will exit and try to re-execute next time. I have two confusions on hypercall preemption:
(1) Why pending softirq or upcall events can affect hypercall's continuation ? (2) When do we need to do hypercall_preempt_check()? For example, do_mmuext_op() has this check but many other hypercall handles don't do the check. How to judge where to appy preemption check?
A lot of thanks, Xinxin
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |