From patchwork Thu May 30 07:15:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 800184 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp98921wrw; Thu, 30 May 2024 00:17:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWaAOqtVumD/ZVQ3ebB3YnpxyMSUw/9PiMqNYD4IcFMhsXK0oWDbh/BL4UC3D8kPh7JSXuGA4UcVcg/zuBax9hg X-Google-Smtp-Source: AGHT+IEkIuggqsOCQ3NPjxexGZJsFqFtBqjIQAlx00LK/HAqPeXlMFNyccbW8w70z8RhJER3zPdH X-Received: by 2002:a05:6214:328f:b0:6ad:8269:9150 with SMTP id 6a1803df08f44-6ae0ccbdd2dmr23885566d6.43.1717053433139; Thu, 30 May 2024 00:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717053433; cv=none; d=google.com; s=arc-20160816; b=DdU+D8RkBFsHqSUFY69EA1DLFs3KheX9BB/ek6Z5ioq37Nd/qNgc1ZN3Jd9t1fZ8bm hK4QQj2zcQJ54tuWrZdGFFYq/sK29QYKgdNsjA0ZlORqX43OmbgiNcb3rc/t6Jy2CO0s q/PI7kH1vclABtazNCAW32Vzoa7Yjb9zDL1f+GqQu5n1VlBGbuSndOE8oYqSXgWKQGEg YWH+/P2PtawAyFgrwRzLlpriuBvLdWDwCI+wQDLJ9VKRkVyq8QJow/3ntJLV/2cWPvON bi5zaWtrqrVQPSUT+PyeJBKvJOImA/czKRAoo9xsUHPz/K+yw9RdFAwEQ84WDHXpaOWR xplA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=y+58tUuGz0yGO1o5h74G/F6IT3Lp8NPe7dBq6tqbQHc=; fh=8BhxD5e2jnu8KRcA39pse1UnZuGnMXqUWTvUA4T6Vu4=; b=ZP8WcttlxYA2FY69xF0no5f3rzQLyuZxSr2Lb5500RJm8KFu2SBx/1B0FFiJ8i/7FQ 0xbtmG09Q+FiLZLuTkfzi2JFEib8LXHB7Z5OqnvtViJYJ1iUgjCuTbiX0D9KJZE/m/8D uomLovCovZ9KaF9k6t17YzVbmxW4UStHxJuihTFgKB1y6J2RQXvtR0nJL0x9MCvixahi K3tOp9xke0WgZ+epkBwLCdV38HM2bmAbvTG8aTpib7++bR5RrcTBPaxCDGS/sUfEzwus maNzO+tMtB/PjClSCv8WGd1bAjCiXTkVgigNfHHqwRG/5cBsdU+AY6igx97kHzSFhoLi 2mFg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mFjTupop; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6ad7a9388a9si7714306d6.587.2024.05.30.00.17.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 00:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mFjTupop; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCa1x-0003FZ-Ud; Thu, 30 May 2024 03:16:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCa1s-0003Ej-NT for qemu-devel@nongnu.org; Thu, 30 May 2024 03:16:52 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCa1q-0005Og-Ns for qemu-devel@nongnu.org; Thu, 30 May 2024 03:16:52 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-35dc7d0387cso530949f8f.1 for ; Thu, 30 May 2024 00:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717053407; x=1717658207; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=y+58tUuGz0yGO1o5h74G/F6IT3Lp8NPe7dBq6tqbQHc=; b=mFjTupopEE4J5VfSKzKRZTb584cilPlxGOZcjtHm/0f6xZyWYESNsFS6NRBNoPgjHx ZNEGdQ+E0QbbDQxwF3cO2K0dS5zZKzGKTZ82M5e955WfBQxG+/J4Wc7SpvO7HD/bX/wh fXqmsF6Dx22iJGnRCn6+LBIVpIbDKttTwcv0wQ1O4IwIbzNJ8mUk8MccF6n6LE7Z3DbU NBhiFJnbHBwWID6Rp8ijj2SRh+pefS8zf0+DizsvC+W6najaRO7jbIygoLvv8uOUc0At jFTfJA4JXSoq22LqeLrFVNK8PUqJH5EylyVzkf4rf0d60R3LAVGQAkeJ7YK9lnURet5J ykcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717053407; x=1717658207; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y+58tUuGz0yGO1o5h74G/F6IT3Lp8NPe7dBq6tqbQHc=; b=PtV3jLEelIEK2lhV64s0udCGBRiS468TUbMJnTWPmZBvX+xM4pAD9aHekfYjMvEnIq +h+MOLmMQc/SshHENpM8R5FELbQAcEjEBZJYWEZVS+/5PXq7v+O0h1A4o/bYAzdTariD 6J2djhsHoSKM6t0AbaTMJ1cY7O3OxuzzzGuW38Q+en/A79Z+3Wfdcfto4diifmRGzdrZ AxhXsiVFYR+rwIfGE9xmcxA9XZYuMzaSYPFEbAFO+Gx46gsmHnZNoReqoR6aIpeZBoFj a30ZbsiamZMCzrbmekC3YPczgiwbZB90uPAbK63bE9pvJ3WIIbM6qg/b7Zy8s7hg7jdq YfgA== X-Gm-Message-State: AOJu0YyZZ/Omd1loLWynw5vXpBgkfrikIZMKflHM0XlJrtdxINXwyQII F1vL6oI7s8qf9wGjsVLnG6v04gwZbaZwLdwPE1hRwwvCmwWjT+az0HXmfNfFVXMVIIdZ1CtuwLn 0 X-Received: by 2002:adf:f30c:0:b0:346:bc1b:4e7c with SMTP id ffacd0b85a97d-35dc0096b5amr995402f8f.35.1717053407114; Thu, 30 May 2024 00:16:47 -0700 (PDT) Received: from m1x-phil.lan (xbn44-h02-176-184-35-50.dsl.sta.abo.bbox.fr. [176.184.35.50]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35579d7d88esm16752281f8f.19.2024.05.30.00.16.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 00:16:46 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , David Gibson , Nicholas Piggin , devel@lists.libvirt.org, Marcel Apfelbaum , Harsh Prateek Bora , Mads Ynddal , Markus Armbruster , Stefan Hajnoczi , Eduardo Habkost , Igor Mammedov , Greg Kurz , Yanan Wang , qemu-ppc@nongnu.org, Eric Blake , "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Daniel Henrique Barboza , Ani Sinha Subject: [PATCH 1/2] hw/acpi: Remove the deprecated QAPI MEM_UNPLUG_ERROR event Date: Thu, 30 May 2024 09:15:47 +0200 Message-ID: <20240530071548.20074-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240530071548.20074-1-philmd@linaro.org> References: <20240530071548.20074-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The MEM_UNPLUG_ERROR event is deprecated since commit d43f1670c7 ("qapi/qdev.json: add DEVICE_UNPLUG_GUEST_ERROR QAPI event"), time to remove it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Harsh Prateek Bora --- docs/about/deprecated.rst | 5 ----- docs/about/removed-features.rst | 9 +++++++++ qapi/machine.json | 28 ---------------------------- hw/acpi/memory_hotplug.c | 8 -------- hw/ppc/spapr.c | 11 +---------- 5 files changed, 10 insertions(+), 51 deletions(-) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 40585ca7d5..4a61894db6 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -151,11 +151,6 @@ property types. QEMU Machine Protocol (QMP) events ---------------------------------- -``MEM_UNPLUG_ERROR`` (since 6.2) -'''''''''''''''''''''''''''''''''''''''''''''''''''''''' - -Use the more generic event ``DEVICE_UNPLUG_GUEST_ERROR`` instead. - ``vcpu`` trace events (since 8.1) ''''''''''''''''''''''''''''''''' diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.rst index fba0cfb0b0..f1e70263e2 100644 --- a/docs/about/removed-features.rst +++ b/docs/about/removed-features.rst @@ -671,6 +671,15 @@ Use ``multifd-channels`` instead. Use ``multifd-compression`` instead. +QEMU Machine Protocol (QMP) events +---------------------------------- + +``MEM_UNPLUG_ERROR`` (removed in 9.1) +''''''''''''''''''''''''''''''''''''' + +MEM_UNPLUG_ERROR has been replaced by the more generic ``DEVICE_UNPLUG_GUEST_ERROR`` event. + + Human Monitor Protocol (HMP) commands ------------------------------------- diff --git a/qapi/machine.json b/qapi/machine.json index bce6e1bbc4..453feb9347 100644 --- a/qapi/machine.json +++ b/qapi/machine.json @@ -1607,34 +1607,6 @@ { 'event': 'MEMORY_DEVICE_SIZE_CHANGE', 'data': { '*id': 'str', 'size': 'size', 'qom-path' : 'str'} } -## -# @MEM_UNPLUG_ERROR: -# -# Emitted when memory hot unplug error occurs. -# -# @device: device name -# -# @msg: Informative message -# -# Features: -# -# @deprecated: This event is deprecated. Use -# @DEVICE_UNPLUG_GUEST_ERROR instead. -# -# Since: 2.4 -# -# Example: -# -# <- { "event": "MEM_UNPLUG_ERROR", -# "data": { "device": "dimm1", -# "msg": "acpi: device unplug for unsupported device" -# }, -# "timestamp": { "seconds": 1265044230, "microseconds": 450486 } } -## -{ 'event': 'MEM_UNPLUG_ERROR', - 'data': { 'device': 'str', 'msg': 'str' }, - 'features': ['deprecated'] } - ## # @BootConfiguration: # diff --git a/hw/acpi/memory_hotplug.c b/hw/acpi/memory_hotplug.c index de6f974ebb..9b974b7274 100644 --- a/hw/acpi/memory_hotplug.c +++ b/hw/acpi/memory_hotplug.c @@ -178,14 +178,6 @@ static void acpi_memory_hotplug_write(void *opaque, hwaddr addr, uint64_t data, hotplug_handler_unplug(hotplug_ctrl, dev, &local_err); if (local_err) { trace_mhp_acpi_pc_dimm_delete_failed(mem_st->selector); - - /* - * Send both MEM_UNPLUG_ERROR and DEVICE_UNPLUG_GUEST_ERROR - * while the deprecation of MEM_UNPLUG_ERROR is - * pending. - */ - qapi_event_send_mem_unplug_error(dev->id ? : "", - error_get_pretty(local_err)); qapi_event_send_device_unplug_guest_error(dev->id, dev->canonical_path); error_free(local_err); diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 4345764bce..81a187f126 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -3786,7 +3786,6 @@ void spapr_memory_unplug_rollback(SpaprMachineState *spapr, DeviceState *dev) SpaprDrc *drc; uint32_t nr_lmbs; uint64_t size, addr_start, addr; - g_autofree char *qapi_error = NULL; int i; if (!dev) { @@ -3823,16 +3822,8 @@ void spapr_memory_unplug_rollback(SpaprMachineState *spapr, DeviceState *dev) /* * Tell QAPI that something happened and the memory - * hotunplug wasn't successful. Keep sending - * MEM_UNPLUG_ERROR even while sending - * DEVICE_UNPLUG_GUEST_ERROR until the deprecation of - * MEM_UNPLUG_ERROR is due. + * hotunplug wasn't successful. */ - qapi_error = g_strdup_printf("Memory hotunplug rejected by the guest " - "for device %s", dev->id); - - qapi_event_send_mem_unplug_error(dev->id ? : "", qapi_error); - qapi_event_send_device_unplug_guest_error(dev->id, dev->canonical_path); } From patchwork Thu May 30 07:15:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 800185 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp99237wrw; Thu, 30 May 2024 00:18:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV+unfCg+b/eWAU8L3ow3ikE8b3cIE3TzRjvl8T0OVDcsgHCvt1nQ4ezxQQtXHiRqgkQolFVXR1HvVvZhezSCUS X-Google-Smtp-Source: AGHT+IEDrJunQNeNOzn8uXUBLZCR3PnQDSwz4c/+9mdA/ACutrr4neLJ9f2Uq02iwLCoiAri7RRs X-Received: by 2002:a05:6214:3288:b0:6ad:814a:a2a0 with SMTP id 6a1803df08f44-6ae0cb235ddmr15286526d6.26.1717053479868; Thu, 30 May 2024 00:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717053479; cv=none; d=google.com; s=arc-20160816; b=zD/yE4BbFzNpb7yLtTbVhREwHU8KXcf6TCftYr3l6eZYIgGtgJO3c1t6N7mxk/Jaoz 8qAU48eBTG8hFpIFk7jfKQWpqBsPD3p8UA4LYC25+roLtJeGGrWbCkRzV7vxlWhbs/ai E8SgZT0MWW7bs9aaybZ8P8HYt5DCjzAeAKUX+qqkqThDmQksFquvDRSATnB2JQwUXyoT Iwj5lzu5KOtWeRDj0u20Yuc+aSGh/BX0g4vcS5qDypcajyJcZCrKMG+KbkFDKucVddEm sGTTEJLSpPmv9zKbFLF2X1E75g4O+iEq2pQPcQ+Zxb01q90z1PMshn9IhOl5GK0eJ8ZT ACFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kvNLJpx/j5Zo3jUuprmrG9QQOioGNCv1AT/8qxYHato=; fh=8BhxD5e2jnu8KRcA39pse1UnZuGnMXqUWTvUA4T6Vu4=; b=pXV+1FuROSpWRipeKNfH7k4/SbUQNH5UneCv9f+08JDkhzqq66NMaYybyplpQulK9k nEHvvAHIozfEv2vvWnIwT2F3Da3xe+zvSHBmhLt0agcA1DOwcTg015XU3RYxiR0cXg9H 2nwEHqnr6jB6Z8VqRE/1BUEPlPIFBbb8zhmYsADE0/OdTo1w8/ueMT4V4tBTcBED0AVM ci/2JWA0K6aTE/LAXB2wyF6qd+ZtcIBceQTUg5KhdxkAOZpOsrEMkpljepqtWANevJdC /GN/FxqU5a6iI31nc+d9cj5p0nriztuIkgQlSeKBAvWcnJh7X59N1/28VNLVFVu0XzSQ GVLw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xeJyC6Xs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6ad759d3985si115490246d6.385.2024.05.30.00.17.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 00:17:59 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xeJyC6Xs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCa2a-00046z-TH; Thu, 30 May 2024 03:17:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCa2X-0003lx-75 for qemu-devel@nongnu.org; Thu, 30 May 2024 03:17:33 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCa2T-0005Z0-5I for qemu-devel@nongnu.org; Thu, 30 May 2024 03:17:30 -0400 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-57a1fe63a98so258772a12.1 for ; Thu, 30 May 2024 00:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717053447; x=1717658247; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kvNLJpx/j5Zo3jUuprmrG9QQOioGNCv1AT/8qxYHato=; b=xeJyC6XsXA6ZwkQ/9uJ3898wIEn7oo5gk2l1orY+tXb3lVAkyBN9N2fW7G1G18jriS VR14WKujPtRbr5GlLT+CFZQllkFn1FwFOXL+QrXZbuLf1I/unxvhzqzE3ztlDbeHPoaU 0t/KaSXyq9QiKbcvyX7CCIJzEAT1uFN0HDxp/yTwVFmzUsudc3pRZL+rp2bpbYYwhooy UPKH9yoGcmrGwxt3IY9JlKjmOrisksBgwuPVW9zOu/gDmQsV5ObL4DcVzw8aQXP0+7jU 2zknAUZ/ydy0xDxExAbcCwhZQsc7p18rVktEY1MKGTnHySqnZj7ZQ8AFAKlejJx2MnD5 uTWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717053447; x=1717658247; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kvNLJpx/j5Zo3jUuprmrG9QQOioGNCv1AT/8qxYHato=; b=ScPMV7GMOy0+Kp03mwwHvlZmjM80H7kQLdfuyyMSBQ2iyUd0/Eijm9nt6O+gRKTXFp +WKwLTztwilqx5SXfKWWegIoUGSrO/JyYseF+yodbuCTxTtPDs/68Gj0FQZUqIQjybgQ HiGv07BbkEAQtRY+CwJMJP/HZ54h+m/zhL93WxnqFxhtV9ROgxyxlWhPeFM8uJFWZadb zZNis1DLKbJmfZOM5VOlm3vnQTCWR/urUVQ4II3DPNhVgpXezV0c3jTYfn42Ni631bt2 abQZVXGGFdjY4HEpE8hUB8tsbvYkMsRTzJ62BD3fBZr9OqMekmXFNyD4OIwMPgTBcYW+ cGkA== X-Gm-Message-State: AOJu0Ywz7Cxg5mSomO7cZMhpJ1CQ0z2LzyuS5T1TejY69g/PU1cB382d FJtNbV151lc70phtcCskfAUr1J4fS9SJIELunsszf8UFyT8oQofgj677q20qrvPjNFb/uNfouwO v X-Received: by 2002:a17:906:28cd:b0:a55:8f2a:950d with SMTP id a640c23a62f3a-a65e8d15723mr67171066b.16.1717053447075; Thu, 30 May 2024 00:17:27 -0700 (PDT) Received: from m1x-phil.lan (xbn44-h02-176-184-35-50.dsl.sta.abo.bbox.fr. [176.184.35.50]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3557a08a878sm16506109f8f.43.2024.05.30.00.17.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 00:17:26 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , David Gibson , Nicholas Piggin , devel@lists.libvirt.org, Marcel Apfelbaum , Harsh Prateek Bora , Mads Ynddal , Markus Armbruster , Stefan Hajnoczi , Eduardo Habkost , Igor Mammedov , Greg Kurz , Yanan Wang , qemu-ppc@nongnu.org, Eric Blake , "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Daniel Henrique Barboza , Ani Sinha Subject: [PATCH 2/2] trace: Remove deprecated 'vcpu' field from QMP trace events Date: Thu, 30 May 2024 09:15:48 +0200 Message-ID: <20240530071548.20074-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240530071548.20074-1-philmd@linaro.org> References: <20240530071548.20074-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=philmd@linaro.org; helo=mail-ed1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 'vcpu' fields are deprecated since commit 5485e52a33 ("qapi: make the vcpu parameters deprecated for 8.1"), time to remove them. Signed-off-by: Philippe Mathieu-Daudé --- docs/about/deprecated.rst | 11 ----------- docs/about/removed-features.rst | 6 ++++++ qapi/trace.json | 27 +++------------------------ trace/qmp.c | 2 -- trace/trace-hmp-cmds.c | 4 ++-- 5 files changed, 11 insertions(+), 39 deletions(-) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 4a61894db6..187c8a3f97 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -148,17 +148,6 @@ accepted incorrect commands will return an error. Users should make sure that all arguments passed to ``device_add`` are consistent with the documented property types. -QEMU Machine Protocol (QMP) events ----------------------------------- - -``vcpu`` trace events (since 8.1) -''''''''''''''''''''''''''''''''' - -The ability to instrument QEMU helper functions with vCPU-aware trace -points was removed in 7.0. However QMP still exposed the vcpu -parameter. This argument has now been deprecated and the remaining -remaining trace points that used it are selected just by name. - Host Architectures ------------------ diff --git a/docs/about/removed-features.rst b/docs/about/removed-features.rst index f1e70263e2..1e64c27cd8 100644 --- a/docs/about/removed-features.rst +++ b/docs/about/removed-features.rst @@ -679,6 +679,12 @@ QEMU Machine Protocol (QMP) events MEM_UNPLUG_ERROR has been replaced by the more generic ``DEVICE_UNPLUG_GUEST_ERROR`` event. +``vcpu`` trace events (removed in 9.1) +'''''''''''''''''''''''''''''''''''''' + +The ability to instrument QEMU helper functions with vCPU-aware trace +points was removed in 7.0. + Human Monitor Protocol (HMP) commands ------------------------------------- diff --git a/qapi/trace.json b/qapi/trace.json index 043d12f83e..9ebb6d9eaf 100644 --- a/qapi/trace.json +++ b/qapi/trace.json @@ -35,17 +35,10 @@ # # @state: Tracing state. # -# @vcpu: Whether this is a per-vCPU event (since 2.7). -# -# Features: -# -# @deprecated: Member @vcpu is deprecated, and always ignored. -# # Since: 2.2 ## { 'struct': 'TraceEventInfo', - 'data': {'name': 'str', 'state': 'TraceEventState', - 'vcpu': { 'type': 'bool', 'features': ['deprecated'] } } } + 'data': {'name': 'str', 'state': 'TraceEventState' } } ## # @trace-event-get-state: @@ -54,12 +47,6 @@ # # @name: Event name pattern (case-sensitive glob). # -# @vcpu: The vCPU to query (since 2.7). -# -# Features: -# -# @deprecated: Member @vcpu is deprecated, and always ignored. -# # Returns: a list of @TraceEventInfo for the matching events # # Since: 2.2 @@ -71,8 +58,7 @@ # <- { "return": [ { "name": "qemu_memalign", "state": "disabled", "vcpu": false } ] } ## { 'command': 'trace-event-get-state', - 'data': {'name': 'str', - '*vcpu': {'type': 'int', 'features': ['deprecated'] } }, + 'data': {'name': 'str' }, 'returns': ['TraceEventInfo'] } ## @@ -86,12 +72,6 @@ # # @ignore-unavailable: Do not match unavailable events with @name. # -# @vcpu: The vCPU to act upon (all by default; since 2.7). -# -# Features: -# -# @deprecated: Member @vcpu is deprecated, and always ignored. -# # Since: 2.2 # # Example: @@ -101,5 +81,4 @@ # <- { "return": {} } ## { 'command': 'trace-event-set-state', - 'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool', - '*vcpu': {'type': 'int', 'features': ['deprecated'] } } } + 'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool' } } diff --git a/trace/qmp.c b/trace/qmp.c index 3e3971c6a8..074a27b204 100644 --- a/trace/qmp.c +++ b/trace/qmp.c @@ -48,7 +48,6 @@ static bool check_events(bool ignore_unavailable, bool is_pattern, } TraceEventInfoList *qmp_trace_event_get_state(const char *name, - bool has_vcpu, int64_t vcpu, Error **errp) { TraceEventInfoList *events = NULL; @@ -86,7 +85,6 @@ TraceEventInfoList *qmp_trace_event_get_state(const char *name, void qmp_trace_event_set_state(const char *name, bool enable, bool has_ignore_unavailable, bool ignore_unavailable, - bool has_vcpu, int64_t vcpu, Error **errp) { TraceEventIter iter; diff --git a/trace/trace-hmp-cmds.c b/trace/trace-hmp-cmds.c index 86211fce27..d38dd600de 100644 --- a/trace/trace-hmp-cmds.c +++ b/trace/trace-hmp-cmds.c @@ -40,7 +40,7 @@ void hmp_trace_event(Monitor *mon, const QDict *qdict) Error *local_err = NULL; qmp_trace_event_set_state(tp_name, new_state, - true, true, false, 0, &local_err); + true, true, &local_err); if (local_err) { error_report_err(local_err); } @@ -82,7 +82,7 @@ void hmp_info_trace_events(Monitor *mon, const QDict *qdict) name = "*"; } - events = qmp_trace_event_get_state(name, false, 0, &local_err); + events = qmp_trace_event_get_state(name, &local_err); if (local_err) { error_report_err(local_err); return;