From: "Jan Beulich" Subject: [PATCH] x86-64 linux: properly exit idle mode from evtchn_do_upcall() Date: Wed, 08 Feb 2006 13:56:19 +0100 Message-ID: <43E9F883.76F0.0078.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part4B69EC63.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part4B69EC63.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline As the other side of the just sent patch to allow exit_idle() to work properly, this patch adds a call to exit_idle() when evtchn_do_upcall() calls evtchn_device_upcall() instead of do_IRQ(). Jan --=__Part4B69EC63.0__= Content-Type: text/plain; name="xenlinux-x86_64-evtchn_do_upcall-exit-idle.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="xenlinux-x86_64-evtchn_do_upcall-exit-idle.patch" --- head-2006-02-07.orig/drivers/xen/core/evtchn.c 2006-02-07 12:06:47.000000000 +0100 +++ head-2006-02-07/drivers/xen/core/evtchn.c 2006-02-08 12:54:46.000000000 +0100 @@ -123,8 +123,10 @@ static void init_evtchn_cpu_bindings(voi #ifdef CONFIG_X86 extern fastcall unsigned int do_IRQ(struct pt_regs *regs); #if defined (__i386__) +static inline void exit_idle(void) {} #define IRQ_REG orig_eax #elif defined (__x86_64__) +#include #define IRQ_REG orig_rax #endif #define do_IRQ(irq, regs) do { \ @@ -170,8 +172,10 @@ asmlinkage void evtchn_do_upcall(struct port = (l1i * BITS_PER_LONG) + l2i; if ((irq = evtchn_to_irq[port]) != -1) do_IRQ(irq, regs); - else + else { + exit_idle(); evtchn_device_upcall(port); + } } } } --=__Part4B69EC63.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part4B69EC63.0__=--