From: Keir Fraser Subject: Re: current not very current (vs curr_vcpu) Date: Fri, 19 Feb 2010 21:34:39 +0000 Message-ID: References: <20100219112349.2cd1854a@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100219112349.2cd1854a@mantra.us.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mukesh Rathor Cc: "Xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 19/02/2010 19:23, "Mukesh Rathor" wrote: > Yes, but my point is it doesn't appear to be running idle vcpu as > indicated by regs->rsp and regs->rip. They both point to dom0 context. > This from printk in ns16550_interrupt(). > > To rephrase the question, if regs->rip and regs->rsp show guest context > in do_IRQ(), then current must always point to guest vcpu, correct? Oh, so the serial interrupt interrupted a guest's execution? Then yes, current should point at that guest. -- Keir