Browse files

xen_console: ignore console disconnect events from console/0

The first console has a different location compared to other PV devices
(console, rather than device/console/0) and doesn't obey the xenstore
state protocol. We already special case the first console in con_init
and con_initialise, we should also do it in con_disconnect.

Signed-off-by: Stefano Stabellini <>
  • Loading branch information...
1 parent 8a22565 commit 028c85f0fffe5d4fdd435e06af4188397acf1cb6 Stefano Stabellini committed Mar 27, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 hw/xen_console.c
@@ -248,6 +248,9 @@ static void con_disconnect(struct XenDevice *xendev)
struct XenConsole *con = container_of(xendev, struct XenConsole, xendev);
+ if (!xendev->dev) {
+ return;
+ }
if (con->chr)
qemu_chr_add_handlers(con->chr, NULL, NULL, NULL, NULL);

0 comments on commit 028c85f

Please sign in to comment.