From patchwork Fri May 27 19:31:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 97745 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A51EBB6F6B for ; Sat, 28 May 2011 05:33:09 +1000 (EST) Received: from localhost ([::1]:54077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ2mR-0005su-1x for incoming@patchwork.ozlabs.org; Fri, 27 May 2011 15:33:07 -0400 Received: from eggs.gnu.org ([140.186.70.92]:39180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ2lR-0003u8-8y for qemu-devel@nongnu.org; Fri, 27 May 2011 15:32:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQ2lQ-0002J8-Fu for qemu-devel@nongnu.org; Fri, 27 May 2011 15:32:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ2lQ-0002J0-6p for qemu-devel@nongnu.org; Fri, 27 May 2011 15:32:04 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4RJW3q0029065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 May 2011 15:32:03 -0400 Received: from localhost (ovpn-113-111.phx2.redhat.com [10.3.113.111]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4RJW2Bw015663; Fri, 27 May 2011 15:32:02 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Fri, 27 May 2011 16:31:51 -0300 Message-Id: <1306524712-13050-3-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1306524712-13050-1-git-send-email-lcapitulino@redhat.com> References: <1306524712-13050-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, amit.shah@redhat.com, aliguori@us.ibm.com, armbru@redhat.com Subject: [Qemu-devel] [PATCH 2/3] QMP: Add BLOCK_MEDIA_EJECT event documentation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Luiz Capitulino --- QMP/qmp-events.txt | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index 0ce5d4e..d53c129 100644 --- a/QMP/qmp-events.txt +++ b/QMP/qmp-events.txt @@ -1,6 +1,24 @@ QEMU Monitor Protocol Events ============================ +BLOCK_MEDIA_EJECT +----------------- + +Emitted when a removable disk media (such as a CDROM or floppy) is ejected. + +Data: + +- "device": device name (json-string) + +Example: + +{ "event": "BLOCK_MEDIA_EJECT", + "data": { "device": "ide1-cd0" }, + "timestamp": { "seconds": 1265044230, "microseconds": 450486 } } + +NOTE: A disk media can be ejected by the guest or by monitor commands (such +as "eject" and "change") + BLOCK_IO_ERROR --------------