xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Xen: Force non-irq keyhandler to be run in tasklet when receive a debugkey from serial port
@ 2016-10-22 11:23 Lan Tianyu
  2016-10-24  0:19 ` Konrad Rzeszutek Wilk
  2016-10-24 10:53 ` Jan Beulich
  0 siblings, 2 replies; 18+ messages in thread
From: Lan Tianyu @ 2016-10-22 11:23 UTC (permalink / raw)
  To: xen-devel
  Cc: Lan Tianyu, sstabellini, wei.liu2, George.Dunlap, andrew.cooper3,
	ian.jackson, jbeulich

__serial_rx() runs in either irq handler or timer handler and non-irq
keyhandler should not run in these contexts. So always force non-irq
keyhandler to run in tasklet when receive a debugkey from serial port

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
---
 xen/drivers/char/console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c
index b0f74ce..184b523 100644
--- a/xen/drivers/char/console.c
+++ b/xen/drivers/char/console.c
@@ -347,7 +347,7 @@ static void switch_serial_input(void)
 static void __serial_rx(char c, struct cpu_user_regs *regs)
 {
     if ( xen_rx )
-        return handle_keypress(c, regs, !in_irq());
+        return handle_keypress(c, regs, true);
 
     /* Deliver input to guest buffer, unless it is already full. */
     if ( (serial_rx_prod-serial_rx_cons) != SERIAL_RX_SIZE )
-- 
2.9.3


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-10-24 15:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-22 11:23 [PATCH] Xen: Force non-irq keyhandler to be run in tasklet when receive a debugkey from serial port Lan Tianyu
2016-10-24  0:19 ` Konrad Rzeszutek Wilk
2016-10-24 13:29   ` Lan, Tianyu
2016-10-24 13:38     ` Konrad Rzeszutek Wilk
2016-10-24 14:12       ` Lan, Tianyu
2016-10-24 14:29         ` Jan Beulich
2016-10-24 13:54     ` Jan Beulich
2016-10-24 14:15       ` Lan, Tianyu
2016-10-24 14:31         ` Jan Beulich
2016-10-24 14:43           ` Lan, Tianyu
2016-10-24 14:56             ` Konrad Rzeszutek Wilk
2016-10-24 14:58             ` Jan Beulich
2016-10-24 10:53 ` Jan Beulich
2016-10-24 11:26   ` Wei Liu
2016-10-24 14:01   ` Lan, Tianyu
2016-10-24 14:28     ` Jan Beulich
2016-10-24 15:03       ` Lan, Tianyu
2016-10-24 15:14         ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).