From: Hollis Blanchard Subject: Re: do_softirq + interrupts Date: Fri, 2 Sep 2005 08:59:00 -0500 Message-ID: References: <200509011814.48047.hollisb@us.ibm.com> <1d1df2cddb778c8690fa3a398fbaae71@cl.cam.ac.uk> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1d1df2cddb778c8690fa3a398fbaae71@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sep 2, 2005, at 3:20 AM, Keir Fraser wrote: > > On 2 Sep 2005, at 00:14, Hollis Blanchard wrote: > >> What confuses me is that any other interrupt could come in at point >> *** above, >> right? That interrupt will follow a very similar path, calling >> do_softirq >> again, and handle TIMER_SOFTIRQ. Then when the first do_softirq >> resumes, the >> ASSERT will trip. > > You shouldn't call do_softirq() from nested Xen activations (this is > unlike Linux, which is happy to do softirq work from arbitrary > interrupt contexts). Ah ha, this was the tip I needed. The test I had overlooked in ret_from_intr was this: movl UREGS_eflags(%esp),%eax movb UREGS_cs(%esp),%al testl $(3|X86_EFLAGS_VM),%eax jnz test_all_events I guess that is cleverly testing both the privilege level being returned to and the virtual 8086 mode bit. Thanks! -- Hollis Blanchard IBM Linux Technology Center