From patchwork Mon Sep 2 13:01:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Reitz X-Patchwork-Id: 271922 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 22BC82C009E for ; Mon, 2 Sep 2013 23:02:10 +1000 (EST) Received: from localhost ([::1]:39693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGTlf-0005VG-BB for incoming@patchwork.ozlabs.org; Mon, 02 Sep 2013 09:02:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGTlL-0005S0-LM for qemu-devel@nongnu.org; Mon, 02 Sep 2013 09:01:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGTlA-00037X-1l for qemu-devel@nongnu.org; Mon, 02 Sep 2013 09:01:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGTl9-00037T-QQ for qemu-devel@nongnu.org; Mon, 02 Sep 2013 09:01:35 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r82D1Yo6026202 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 2 Sep 2013 09:01:35 -0400 Received: from localhost (dhcp-200-247.str.redhat.com [10.33.200.247]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r82D1X12005017 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 2 Sep 2013 09:01:34 -0400 From: Max Reitz To: qemu-devel@nongnu.org Date: Mon, 2 Sep 2013 15:01:24 +0200 Message-Id: <1378126884-9544-1-git-send-email-mreitz@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Kevin Wolf , Max Reitz Subject: [Qemu-devel] [PATCH] qmp: Documentation for BLOCK_IMAGE_CORRUPTED 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 Add an appropriate entry describing this event and its parameters into qmp-events.txt. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- Follow-up to: - Add metadata overlap checks (series, v5); particularly patch 2 (qcow2: Metadata overlap checks) --- QMP/qmp-events.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index 39b6016..6ff74d6 100644 --- a/QMP/qmp-events.txt +++ b/QMP/qmp-events.txt @@ -478,3 +478,25 @@ Example: { "event": "GUEST_PANICKED", "data": { "action": "pause" } } + +BLOCK_IMAGE_CORRUPTED +--------------------- + +Emitted when a disk image is being marked corrupt. + +Data: + +- "device": Device name (json-string) +- "msg": Informative message (e.g., reason for the corruption) (json-string) +- "offset": If the corruption resulted from an image access, this is the access + offset into the image (json-int) +- "size": If the corruption resulted from an image access, this is the access + size (json-int) + +Example: + +{ "event": "BLOCK_IMAGE_CORRUPTED", + "data": { "device": "ide0-hd0", + "msg": "Prevented active L1 table overwrite", "offset": 196608, + "size": 65536 }, + "timestamp": { "seconds": 1378126126, "microseconds": 966463 } }