From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9374FC4743C for ; Mon, 21 Jun 2021 21:03:26 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 40D1C61245 for ; Mon, 21 Jun 2021 21:03:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 40D1C61245 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:60256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvR4n-0000gB-AC for qemu-devel@archiver.kernel.org; Mon, 21 Jun 2021 17:03:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvR3v-0007uj-4p; Mon, 21 Jun 2021 17:02:32 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:38800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvR3q-0002vK-C7; Mon, 21 Jun 2021 17:02:30 -0400 Received: by mail-qt1-x831.google.com with SMTP id o19so14534094qtp.5; Mon, 21 Jun 2021 14:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ewV4P0AJZUD2bW4Vlvy6InljdrIYpXH0tqJiSV2iYR0=; b=ifZceFitRhmiE8Dn8N/l/wmDqa8CJbkuLWkeBhauruNi/x/ZGtkl63DWqJNCIc3q0O mI55UBp4gh8vx+5ZWm2tAKBv+BXm8doYnQchBYYskGy65jy3XKRJg7TcmFQzwQ8P2bwN vWzyb4CnRZjPY5VJk/QgHUrqMnZXoxWqqSskLBlhNENMnBzhG2uoYx1blBOnWSiaE8ld z2KT9iUq2MgHRJZ8f7VVXt5y8LkW4EdmCZ4ES2X0iTmQ3OvEky0Wc5DRopA/SSpSWnjY 3kXRg+jLGghh2KWp2wGo4d03wiMP6eSiCYz9lCP+t9klKv8Xf3QOznP9WTqbr6NTpz70 vqTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ewV4P0AJZUD2bW4Vlvy6InljdrIYpXH0tqJiSV2iYR0=; b=luoxEFQyp+cTdi18H0IhNG30tRdlvViTyrfLLttAbmb/XBmBctrv9JfKSDB9Hvjdk7 7qViMhtTD5JKi5n8t2L507jMBqVxvjxN4Md1u8/EeuZzKH2KOeaPY7EtC00hpQvv+Epq MhCiWRecehiHqCjOewPtyBtYNHytkpqT0yYvehgO8u9JimAF/WIWYln/BMGejjE0QOMj iOLXDBcnb2OFzaVi+7mFeCZCm1HP036BV7kdpDJQYuQzGV2D04mmLHPd4VlSAa3dXd3Z vG4JudRMqCNy6V6CTvgUMFjH/8n8wUwSIKigNrETvEmwje9LQah7nk3xdIGZKzDQUmMI Xfmg== X-Gm-Message-State: AOAM530LMxS6NfkyUSP142uZ5tbW86OkpKZ+icgPvtSu7WqVWlqSZiVv cVvOOlRPvy6I7sO/5f3k0FWkIxNDafM= X-Google-Smtp-Source: ABdhPJzOWeomM8CQ2F76XnhJQ4jpXXRtYILMbrGrpsz0Be25I8bd/GCWTP4cNhqh8/FKthUph7Dubg== X-Received: by 2002:ac8:570a:: with SMTP id 10mr464316qtw.179.1624309343848; Mon, 21 Jun 2021 14:02:23 -0700 (PDT) Received: from localhost.localdomain ([191.19.29.157]) by smtp.gmail.com with ESMTPSA id b8sm187035qtr.77.2021.06.21.14.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 14:02:23 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH v3 0/3] DEVICE_UNPLUG_ERROR QAPI event Date: Mon, 21 Jun 2021 17:59:04 -0300 Message-Id: <20210621205907.244841-1-danielhb413@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=danielhb413@gmail.com; helo=mail-qt1-x831.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Henrique Barboza , armbru@redhat.com, groug@kaod.org, qemu-ppc@nongnu.org, eblake@redhat.com, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, In this new version we're now sending both MEM_UNPLUG_ERROR and the new DEVICE_UNPLUG_ERROR events to avoid breaking existing listeners of MEM_UNPLUG_ERROR, which is now marked as deprecated. All emitters of MEM_UNPLUG_ERROR are now emitting DEVICE_UNPLUG_ERROR as well. changes from v2: - patch 1: * moved DEVICE_UNPLUG_ERROR declaration to qapi/qdev.json * updated 'device_del' description * added 'deprecated' notice on MEM_UNPLUG_ERROR * added MEM_UNPLUG_ERROR 'deprecated' info in docs/system/deprecated.rst - patch 2: * send both MEM_UNPLUG_ERROR and DEVICE_UNPLUG_ERROR - patch 3 (new): * send DEVICE_UNPLUG_ERROR in acpi/memory_hotplug.c - v2 link: https://lists.gnu.org/archive/html/qemu-devel/2021-06/msg01304.html changes from v1: - former patches 1 and 2: dropped - patch 1 (former 3): changed the version to '6.1' - patch 2 (former 4): add a DEVICE_UNPLUG_ERROR event in the device unplug error path of CPUs and DIMMs - v1 link: https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg04682.html Daniel Henrique Barboza (3): qapi/qdev.json: add DEVICE_UNPLUG_ERROR QAPI event spapr: use DEVICE_UNPLUG_ERROR to report unplug errors memory_hotplug.c: send DEVICE_UNPLUG_ERROR in acpi_memory_hotplug_write() docs/system/deprecated.rst | 10 ++++++++++ hw/acpi/memory_hotplug.c | 13 +++++++++++-- hw/ppc/spapr.c | 8 ++++++++ hw/ppc/spapr_drc.c | 15 +++++++++------ qapi/machine.json | 6 +++++- qapi/qdev.json | 27 ++++++++++++++++++++++++++- 6 files changed, 69 insertions(+), 10 deletions(-) -- 2.31.1