From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvUQX-0000AO-Fm for qemu-devel@nongnu.org; Wed, 07 Oct 2009 07:11:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvUQS-00007K-6m for qemu-devel@nongnu.org; Wed, 07 Oct 2009 07:11:24 -0400 Received: from [199.232.76.173] (port=46346 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvUQS-00007C-3R for qemu-devel@nongnu.org; Wed, 07 Oct 2009 07:11:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9370) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvUQR-00079f-9o for qemu-devel@nongnu.org; Wed, 07 Oct 2009 07:11:19 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n97BBI8W022553 for ; Wed, 7 Oct 2009 07:11:18 -0400 Received: from localhost (vpn-240-209.phx2.redhat.com [10.3.240.209]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n97BBGgR014997 for ; Wed, 7 Oct 2009 07:11:17 -0400 From: Amit Shah Date: Wed, 7 Oct 2009 16:40:37 +0530 Message-Id: <1254913840-10358-1-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] char: Send out OPENED events only on char dev open; not on qemu initial reset List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello, These patches rename the CHR_EVENT_RESET event to CHR_EVENT_OPENED, which is what it really is. The check for initial_reset_issued was not really necessary, so that has been done away with. Finally, this event is now only sent when a char dev is opened instead of the current behaviour of also sending it when qemu does its early init of char state. The consumers of the event shouldn't be interested in this anyway. I've tested this with the monitor.