From patchwork Thu May 30 07:45:41 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: 800188 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp107458wrw; Thu, 30 May 2024 00:46:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVU+6twNmFynEV7AapGzujNmvMEdcm/8+S9OyfmqQu6HCH/UNB33N2ZXmN1/8WK7KsGJsacgKrMRhNYkMLb08FM X-Google-Smtp-Source: AGHT+IF2oMT2uzL8440o30AqF8T+br1NfVWCxCNkxqT97dUc4QlA2esEAAeENMlUBeZbwK2hx8oi X-Received: by 2002:a05:622a:828b:b0:43f:ed14:eb24 with SMTP id d75a77b69052e-43fed14edcdmr5855151cf.15.1717055207203; Thu, 30 May 2024 00:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717055207; cv=none; d=google.com; s=arc-20160816; b=zhEtioXgDvFQ3dyryPAvGexBwUkLq0Girj3VvIoTxj7MP1KyClKNfdQqUH4/GK/dzb vjF9j+xITLjdaM+RnJBBavS76XZLUIPx2REm0NFSu/PGMe+6+U+T3lklqRlG79Vz0EcE KKQD3PCcPuT/alJLFKiy/rwanTP1Ty85pSty0K0sFoGERIdTtZUDeTZGub8NJ5elg4MP kZQ9pZYF/sC41023GhTTmiwQ9T0aUOuUYexmFhz7Y60JvX+aMQVC3rtEQ2bYwZ6xfrZB 2g7naicETdigi6gWuKmvSiJNvG2vwDkXMSMIMUbbubtSOlfNQ4qx5YIrrOK/TjrMGv8t Ll3w== 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=9HDpCi4iEWOUwI39sa+QJujajRIL5EYyVsQyGGRGUn4=; fh=DSrTnMLgb2exUDLRzb3sc8yUZn+55eMJOKYB9zwrIQI=; b=BFT/EaYjUHkRWaxCWqSez6EG9hi8Xnrq+pW/Gkmhr+8+gVLI+kmoHCTgzF4TWbP4qX /6MApJTfXrQCYfuxpCsQrFQhvQEQeL9M6kpsL2WJbjqCY1oAxUIeBm/t3bMU1rP3zxdO 3I8rAA8aY98q0JN9QyBICPJxIceBSQzYprYGas5eWtQqNuLXo9nV7ww5y0MlOFYSjkaf rofqaWdUbd+gyx24lFpzaQF4c6WkwG3GxxuXWsHIZTKb5A1DeQn4F25YCcZxna3dmjxS iTEqUSLVhXvx0t6hqyMJIEzFPt2WzMqHkhrUVOLViEa5rdb0i49GexgS6XhM7jCbOaaa xkWw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uuRG86uf; 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 d75a77b69052e-43fb18eda1fsi159698201cf.791.2024.05.30.00.46.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 00:46:47 -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=uuRG86uf; 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 1sCaU9-0002dY-LS; Thu, 30 May 2024 03:46:05 -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 1sCaU7-0002cK-En for qemu-devel@nongnu.org; Thu, 30 May 2024 03:46:03 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCaU5-0003MQ-Mb for qemu-devel@nongnu.org; Thu, 30 May 2024 03:46:03 -0400 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2e95abc7259so5456221fa.3 for ; Thu, 30 May 2024 00:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717055158; x=1717659958; 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=9HDpCi4iEWOUwI39sa+QJujajRIL5EYyVsQyGGRGUn4=; b=uuRG86ufMJR94gOBTyw1dKmgDiuqT0z916DVGiWt6819leq7XeYd0KSp4wNg5PWvgc oxzEL9CZzUmfRXB43z1Z/rHc3R0EdsK9nvsRWE8bMJtaQywMpzEebuV8PtDUnXRETQOs uS7zAlB2APpWAXLvhK+FlHoNDXI30WXYQQIeuP1/WN3qRjyCTzi3nShpB2VzG1mn56p7 N5YFkmhD3DndsfzYU8gJbPP6cXqkD2kiP/+eRvOhFXOL3bVP+xR7w50GTtOoagnSC2LJ Hofjlx/Wh09ivFfiZybTPfJMlwTe7cV2G5Md0wKimCQ/XcwpRv135YKztjobc4jKnfiu mFyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717055158; x=1717659958; 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=9HDpCi4iEWOUwI39sa+QJujajRIL5EYyVsQyGGRGUn4=; b=NQF4l3r1n2/Hee/92P/7B+5f/8McO4P+1DrY3usBJhL2YEzCFAVUvGjjtWVnQQACUu pspb2cBbcCLnFbsfEt9rBcUrrxe3NCyGeUAc8PXKHb092iQJDZolmDBmVs5Hi/zSn7QR bxYEjH0digw+unG9jXErpIHr+ouMq5C2Hu9BAQ8NRcSaxhJrX5Ac5LT7UoZ1QO6azAys 58Hg67TW5R7ngq9MtEAisIRYqv81KsLMJtchIUAeCGPJ2dgXjrw3q6eWX9O3ILv7A3sD EXpIgU/nBWD6W9vB+3AZzoZHj1RsPg14N785KsqNmCt1XhrEsUBwhSANWLxGWGa0wsQT QNoA== X-Gm-Message-State: AOJu0YwPFp9yYNPD7/kqeI5z+ggIAUvJiJ1L/nuXSogil7RK2PFamSOY VwO2WPpZiP3e/4d6qnv3LrQduBYPFilVl55Dbv/go0v7q/fi/PgMZ3I5pjymFPze1tFCR00Q5A2 a X-Received: by 2002:a2e:7208:0:b0:2ea:83e6:d5e with SMTP id 38308e7fff4ca-2ea847b3b88mr6130601fa.26.1717055158011; Thu, 30 May 2024 00:45:58 -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-35579d7db8csm16673189f8f.8.2024.05.30.00.45.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 00:45:57 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Dr. David Alan Gilbert" , David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= , Christian Borntraeger , =?utf-8?q?Daniel_P_=2E_B?= =?utf-8?q?errang=C3=A9?= , qemu-s390x@nongnu.org, devel@lists.libvirt.org, Eric Farman , Thomas Huth , Ilya Leoshkevich , Markus Armbruster , Richard Henderson , Eric Blake , Halil Pasic , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/4] hw/s390x: Introduce the @dump-s390-skeys QMP command Date: Thu, 30 May 2024 09:45:41 +0200 Message-ID: <20240530074544.25444-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240530074544.25444-1-philmd@linaro.org> References: <20240530074544.25444-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=philmd@linaro.org; helo=mail-lj1-x235.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 @dump-skeys is specific to the qemu-system-s390x binary. In order to provide it in an unified single binary, add a equivalent new command named @dump-s390-skeys, which works identically on s390x and reports an error on other targets. Signed-off-by: Philippe Mathieu-Daudé --- qapi/misc.json | 18 ++++++++++++++++++ hw/s390x/s390-skeys-stub.c | 16 ++++++++++++++++ hw/s390x/s390-skeys.c | 8 +++++++- hw/s390x/meson.build | 5 +++++ 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 hw/s390x/s390-skeys-stub.c diff --git a/qapi/misc.json b/qapi/misc.json index ec30e5c570..d192dd1bef 100644 --- a/qapi/misc.json +++ b/qapi/misc.json @@ -605,3 +605,21 @@ { 'event': 'VFU_CLIENT_HANGUP', 'data': { 'vfu-id': 'str', 'vfu-qom-path': 'str', 'dev-id': 'str', 'dev-qom-path': 'str' } } + +## +# @dump-s390-skeys: +# +# Dump guest's storage keys +# +# @filename: the path to the file to dump to +# +# Since: 9.1 +# +# Example: +# +# -> { "execute": "dump-skeys", +# "arguments": { "filename": "/tmp/skeys" } } +# <- { "return": {} } +## +{ 'command': 'dump-s390-skeys', + 'data': { 'filename': 'str' } } diff --git a/hw/s390x/s390-skeys-stub.c b/hw/s390x/s390-skeys-stub.c new file mode 100644 index 0000000000..50b5f83437 --- /dev/null +++ b/hw/s390x/s390-skeys-stub.c @@ -0,0 +1,16 @@ +/* + * s390 storage key device stubs + * + * SPDX-FileContributor: Philippe Mathieu-Daudé + * SPDX-FileCopyrightText: 2023 Linaro Ltd. + * SPDX-License-Identifier: GPL-2.0-or-later + */ +#include "qemu/osdep.h" +#include "qapi/error.h" +#include "qapi/qapi-commands-misc.h" + +void qmp_dump_s390_skeys(const char *filename, Error **errp) +{ + error_setg(errp, "This guest is not using s390 storage keys - " + "nothing to dump"); +} diff --git a/hw/s390x/s390-skeys.c b/hw/s390x/s390-skeys.c index 5c535d483e..f9bb08eb92 100644 --- a/hw/s390x/s390-skeys.c +++ b/hw/s390x/s390-skeys.c @@ -15,6 +15,7 @@ #include "hw/qdev-properties.h" #include "hw/s390x/storage-keys.h" #include "qapi/error.h" +#include "qapi/qapi-commands-misc.h" #include "qapi/qapi-commands-misc-target.h" #include "qapi/qmp/qdict.h" #include "qemu/error-report.h" @@ -115,7 +116,7 @@ void hmp_dump_skeys(Monitor *mon, const QDict *qdict) } } -void qmp_dump_skeys(const char *filename, Error **errp) +void qmp_dump_s390_skeys(const char *filename, Error **errp) { S390SKeysState *ss = s390_get_skeys_device(); S390SKeysClass *skeyclass = S390_SKEYS_GET_CLASS(ss); @@ -192,6 +193,11 @@ out: fclose(f); } +void qmp_dump_skeys(const char *filename, Error **errp) +{ + qmp_dump_s390_skeys(filename, errp); +} + static bool qemu_s390_skeys_are_enabled(S390SKeysState *ss) { QEMUS390SKeysState *skeys = QEMU_S390_SKEYS(ss); diff --git a/hw/s390x/meson.build b/hw/s390x/meson.build index 482fd13420..c94b8d819d 100644 --- a/hw/s390x/meson.build +++ b/hw/s390x/meson.build @@ -50,6 +50,11 @@ virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock-ccw.c')) virtio_ss.add(when: 'CONFIG_VHOST_USER_FS', if_true: files('vhost-user-fs-ccw.c')) s390x_ss.add_all(when: 'CONFIG_VIRTIO_CCW', if_true: virtio_ss) +s390x_stub_ss = ss.source_set() +s390x_stub_ss.add(when: 'TARGET_S390X', if_false: files('s390-skeys-stub.c')) + +specific_ss.add_all(s390x_stub_ss) + hw_arch += {'s390x': s390x_ss} hw_s390x_modules = {} From patchwork Thu May 30 07:45:42 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: 800186 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp107348wrw; Thu, 30 May 2024 00:46:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXpxHurX088aZLfzzPS8NR+Akyc3XuqHNl8ik8Cwj7uyOclO4IU5MFcn3HxFkKp4+aCbiW+dLik6jWiIX7hY/Hm X-Google-Smtp-Source: AGHT+IHbxuF9aF69tpdr1YYkoP4D96CNvX9po+fUcgtifGh941GZK1umThxLKbM/tkTWiSb4kU/Q X-Received: by 2002:a25:ef07:0:b0:df4:a845:74c1 with SMTP id 3f1490d57ef6-dfa5a5bf92cmr1591296276.17.1717055184702; Thu, 30 May 2024 00:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717055184; cv=none; d=google.com; s=arc-20160816; b=yo7F0SEprHbGIED7GlyM/IeftTwPezwtZFiBx5keDwuKo1Umr5p/yFj5vyhr0ThRFn loiIzMbMD035OsyxtGTjSDIm4+1cmTYGPmc25qV40gdx2mc2QIGNLuUfqplT0eCFc7kK uMhXdlkYApDsE+UcnTeX84uaLi0F94Fkh7E0+2gD6Og9bkonMUAFEvVsucZQLi5MGNpj jvxbYIRfAsHaUdxp20aB8t5wS5y2TJGvWOH+/mlsh14iYNLLm7K0W+zLSRNUgM6WEWIt XirzKP3q+PGVe6yWYLSUcHD5u1zxamYtegh9ETRPN1ZOHxZjr0JuI7uARBjxk9cDktLS QBwg== 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=86k7CF14SSg/CYqN2D7txu231XQemu6J+/zlA2s2d3g=; fh=DSrTnMLgb2exUDLRzb3sc8yUZn+55eMJOKYB9zwrIQI=; b=LtYR6SGCUh1v/Bu9JiwT2ebHHRrCAn5h/ODN1K/AgwA2wWBOu0bnS0Z1sUGHwnac7G wuRt9N7JheBFTywR4nNCq/PHHpwDS8/HokPaw0iY3IGWHR8L/Z0F1Cbj63DvuusWR/9F bXpX8tlNmc9WdbQH0o7QLvNxH7/ogAGmbow3qFhlijjfgS4LJkIOpwYxVMRIlmOThYxs Sj8lmYksnImZsC9I9F6lONy5q33gpInk0/r5UQ7F2GoEh4iMuRl3UrjmiC1oQLxalq7i 2SXGH91jtlGuSSjbpCD+w/5FGAU8yQiCWkpAWcGOvUnEh5ebA2giJhO5gjClt82wsgck s4WA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CU2im0Wc; 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-6ae207e85c4si1957056d6.321.2024.05.30.00.46.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 00:46:24 -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=CU2im0Wc; 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 1sCaUP-0002pl-3s; Thu, 30 May 2024 03:46:21 -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 1sCaUD-0002fg-Id for qemu-devel@nongnu.org; Thu, 30 May 2024 03:46:11 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCaUA-0003N4-Tp for qemu-devel@nongnu.org; Thu, 30 May 2024 03:46:09 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-35dc0472b7eso563984f8f.2 for ; Thu, 30 May 2024 00:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717055165; x=1717659965; 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=86k7CF14SSg/CYqN2D7txu231XQemu6J+/zlA2s2d3g=; b=CU2im0Wcsh9VrTyD++I9rVZB8REdLHEM8elVT7j69sQPwzNCD+nPOnGtrMyiMdMI+C MKSq9XO0johVQX6dalrRatiubpkIfDg7iegH0f932Nt62fuxkoITWVsf7MkPJgwMzJYz TbVLN7eaQsCi/2puAWGCag6i0tNVrRfjl55V0DxYGh+PV7vy/ORvistOloSc+bmmc4pe dgrfBhu4WBLM0d+F/UrZS7rhO7P5Oe9QnDV6AbjTF1kw/GwKaScqEITooxS6/WBVOwiN y8GYP3T4JUKVM3dtiCw/J8LwPSkvxvP0G5w3D/CJYfTWMz3F6Sq+wKAzWhb9NdNJdWvU KIPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717055165; x=1717659965; 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=86k7CF14SSg/CYqN2D7txu231XQemu6J+/zlA2s2d3g=; b=gcavmcXN1i4bNvrAx5/td1oVyCxr6DEdpYsL4aL4vyP2l5AvZ44oExzAqnQo0BDEmc kvnasgmhrGuf1fpQadcKYTv05eG6GrWO5pJMt3vwVueVSq6O0QBVaLfwwPeH08+U0LDx 7IBWi73+l5OpzaySO8nhkpGcUxIWzkN+dst3JFWhXiIrRUVbbSvHypArtFIs5Lba/o8A FhJJIxGMYy+mtw17lV5kmjsfcza9xkpl3Sr8CCnh8fBmwXavUMQKYndAfssDKK603Rug qby0gBsNEmQQIdJuK/RUr6/tFhYWAL2arSZJ83kFSv9aJtQxbZ2U8DfoG9Qc5Octp4Rn Ozsg== X-Gm-Message-State: AOJu0Yy6KItWC2WYGsQ2VBWuUFnaOUG5x/4Z4+Y3t1LSbJsX/Syh1W/H Sy252Ai6WQNvU7RbqQg1XbU2kKwb7NckHxpcPBeVNdTXQTBIRVfkD88igjOUkRmzkhrAPiX1NP/ X X-Received: by 2002:adf:ec04:0:b0:354:cf3b:5791 with SMTP id ffacd0b85a97d-35dc02bcfd4mr846234f8f.70.1717055164804; Thu, 30 May 2024 00:46:04 -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-3557a1c960esm16668562f8f.80.2024.05.30.00.46.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 00:46:04 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Dr. David Alan Gilbert" , David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= , Christian Borntraeger , =?utf-8?q?Daniel_P_=2E_B?= =?utf-8?q?errang=C3=A9?= , qemu-s390x@nongnu.org, devel@lists.libvirt.org, Eric Farman , Thomas Huth , Ilya Leoshkevich , Markus Armbruster , Richard Henderson , Eric Blake , Halil Pasic , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 2/4] hw/s390x: Introduce the 'dump_s390_skeys' HMP command Date: Thu, 30 May 2024 09:45:42 +0200 Message-ID: <20240530074544.25444-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240530074544.25444-1-philmd@linaro.org> References: <20240530074544.25444-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.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 'dump_skeys' is specific to the qemu-system-s390x binary. In order to provide it in an unified single binary, add a equivalent new command named 'dump_s390_skeys', which works identically on s390x and reports an error on other targets. Signed-off-by: Philippe Mathieu-Daudé --- include/monitor/hmp.h | 1 + hw/s390x/s390-skeys-stub.c | 8 ++++++++ hw/s390x/s390-skeys.c | 9 ++++++++- hmp-commands.hx | 13 +++++++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/include/monitor/hmp.h b/include/monitor/hmp.h index 954f3c83ad..647a1e4a3f 100644 --- a/include/monitor/hmp.h +++ b/include/monitor/hmp.h @@ -181,5 +181,6 @@ void hmp_boot_set(Monitor *mon, const QDict *qdict); void hmp_info_mtree(Monitor *mon, const QDict *qdict); void hmp_info_cryptodev(Monitor *mon, const QDict *qdict); void hmp_dumpdtb(Monitor *mon, const QDict *qdict); +void hmp_dump_s390_skeys(Monitor *mon, const QDict *qdict); #endif diff --git a/hw/s390x/s390-skeys-stub.c b/hw/s390x/s390-skeys-stub.c index 50b5f83437..94b491425b 100644 --- a/hw/s390x/s390-skeys-stub.c +++ b/hw/s390x/s390-skeys-stub.c @@ -8,6 +8,14 @@ #include "qemu/osdep.h" #include "qapi/error.h" #include "qapi/qapi-commands-misc.h" +#include "monitor/monitor.h" +#include "monitor/hmp.h" + +void hmp_dump_s390_skeys(Monitor *mon, const QDict *qdict) +{ + monitor_printf(mon, "This guest is not using s390 storage keys - " + "nothing to dump\n"); +} void qmp_dump_s390_skeys(const char *filename, Error **errp) { diff --git a/hw/s390x/s390-skeys.c b/hw/s390x/s390-skeys.c index f9bb08eb92..e7dab52a6e 100644 --- a/hw/s390x/s390-skeys.c +++ b/hw/s390x/s390-skeys.c @@ -24,6 +24,8 @@ #include "sysemu/kvm.h" #include "migration/qemu-file-types.h" #include "migration/register.h" +#include "monitor/monitor.h" +#include "monitor/hmp.h" #define S390_SKEYS_BUFFER_SIZE (128 * KiB) /* Room for 128k storage keys */ #define S390_SKEYS_SAVE_FLAG_EOS 0x01 @@ -105,7 +107,7 @@ void hmp_info_skeys(Monitor *mon, const QDict *qdict) monitor_printf(mon, " key: 0x%X\n", key); } -void hmp_dump_skeys(Monitor *mon, const QDict *qdict) +void hmp_dump_s390_skeys(Monitor *mon, const QDict *qdict) { const char *filename = qdict_get_str(qdict, "filename"); Error *err = NULL; @@ -116,6 +118,11 @@ void hmp_dump_skeys(Monitor *mon, const QDict *qdict) } } +void hmp_dump_skeys(Monitor *mon, const QDict *qdict) +{ + hmp_dump_s390_skeys(mon, qdict); +} + void qmp_dump_s390_skeys(const char *filename, Error **errp) { S390SKeysState *ss = s390_get_skeys_device(); diff --git a/hmp-commands.hx b/hmp-commands.hx index 06746f0afc..c12e2c2bd9 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1120,6 +1120,19 @@ SRST ERST + { + .name = "dump-s390-skeys", + .args_type = "filename:F", + .params = "", + .help = "Save guest storage keys into file 'filename'.", + .cmd = hmp_dump_s390_skeys, + }, + +SRST +``dump-s390-skeys`` *filename* + Save guest storage keys to a file. +ERST + #if defined(TARGET_S390X) { .name = "dump-skeys", From patchwork Thu May 30 07:45:43 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: 800187 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp107452wrw; Thu, 30 May 2024 00:46:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWCn0+htXIhJE/Ucegvwo8J13Ca0/dZBvOBXzCgISl4U643zG7SbV0Lp90dykP4OGa3DoYy9mq8dQtN7WC/TC5a X-Google-Smtp-Source: AGHT+IEcnb0Ge5VuqRKyOM401FkwT7oX3kMYlK1CCoPOdf1oeq4OZ/r9bK8yQqjTwp+UVvbC0Ofm X-Received: by 2002:a05:620a:5812:b0:792:c005:9798 with SMTP id af79cd13be357-794e9dab3fcmr145804685a.22.1717055205350; Thu, 30 May 2024 00:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717055205; cv=none; d=google.com; s=arc-20160816; b=kitkd11kzoJX7rKlPMHLKUiZMJkGzYlLNcLJUBc7+zawWooss6pU9lM9m47xOVpuGL qXYAsHnySMRbBvQHMdhdM+WZaWmNQd0/CEf6eYwFZ+7a4lAx33K7rFGwLbdrnfhIA+XM UKRF+9W/JI6dlYIj34Hl9Qf5pYSftnPKPtEyUXHuqOIu7k/YoDNz0InBhucw7m+Np6vc 8K9EQHmDK/tc6SiQKtUQ5EooCd/OcDWX/J6yNnuMnajEWcavW0xLN3UCjm/2jWqlnPSb +O75uMBfRVz8K23DEd2w6K91qPGuECtie5VFBKv+WxWkH+WQ2MzSs8RikD8foe7AHiCU jXBA== 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=01WlZSY18T45T+CzrK5D3m5TP/teYv3HLGHIpCdLE80=; fh=DSrTnMLgb2exUDLRzb3sc8yUZn+55eMJOKYB9zwrIQI=; b=Jggw2xOpEVJ9sS38D1YDlFJ+tUPDIaqVKK5elB+5d5bZGLGcy59gSGuPg1tMamFfeP GGxIHA6Oj3lLKy758h9Lwy6CraH87De+LGBbECmqO0zv0glGQh9yfZJ7RoGgcxZnUIKN 497nWxWspmaJhQNoJVAUaEHhAMiiFzJ7ydq5KImqXc+lJ96tTEJO1rS6vw1x0yC/6au9 0uXsUD+Dd57BxqvPMlWo6iwgT8XIaTfibIlhn8uQICbfqEufbDFLBpXJd13IAJlXpURB PKul18cJ1j8lbrzE7Nn3jaTJ5Dh6QvtkkZku8LRQcBWwc2oVpRiRs8bCRJAl85HDuRDJ QEUw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YaBFc0cg; 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 af79cd13be357-794abcab57dsi1422407585a.84.2024.05.30.00.46.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 00:46:45 -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=YaBFc0cg; 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 1sCaUR-00030V-L4; Thu, 30 May 2024 03:46:23 -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 1sCaUJ-0002pj-V2 for qemu-devel@nongnu.org; Thu, 30 May 2024 03:46:19 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCaUI-0003Nb-Al for qemu-devel@nongnu.org; Thu, 30 May 2024 03:46:15 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-420180b5922so8049035e9.2 for ; Thu, 30 May 2024 00:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717055172; x=1717659972; 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=01WlZSY18T45T+CzrK5D3m5TP/teYv3HLGHIpCdLE80=; b=YaBFc0cgXXzfDwjgJDMLmZUppgkjKXoR/kAAzz0MDD4n6B+l73B5DacVqwM8Kshq+g TXUhCkLyh7quUfPNsLyDtO/x4Yp3IcMx1Sh+Wo4yzd3LTLg9MNW63fTFfX4PIgOT43c8 /AyWVmeUgOVaEWUk/Znni8yxGh0hGFWItc2lhlqUNCkAaAjz29xoVRsK8NoGpD9iCxZI wLjivIheEdhUwz2GJhoe9VDAkJhiioNGewAxA7ZB8PQVTMYHhHTuX+vP3i1RgiFx44r2 0GD9kFkQER+ASaxoRQPCd9X44YjqOOup33wGwqZfiWjzkXUJ3KAPUUYdpO2kCdoX4FqX O0kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717055172; x=1717659972; 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=01WlZSY18T45T+CzrK5D3m5TP/teYv3HLGHIpCdLE80=; b=OXOjYo3HZVWVkp0Umcf+FZAFNmP+AWZOm2SG0RO+1i/YVpyIIscsV4JowaQWLa1QD+ JdNFf//55ahC8Sj6L1bYmwfwsEi3j9al5222Tchf6QgPRJOyWCX+rDIrdCRBqEHe+rrY VveTJMzwPKoSoCN4tki6ygylDR/mwp69qDJh+oP7tjAighqs+wqoSQHpeAezVKoli1rK gQ41c5yFOI5DsIgOCJSFeTMn0PSMtoU9HWXYDoJtwIvanTo0XtuRs7h+c53TFJL9KfN2 5/6NRLNi6sNABQS/vfALzyJXZD4kSZF8RD15MbvxrzydFYeraFxDfO0RSeq3sUSUGosj p4fA== X-Gm-Message-State: AOJu0YxUQ2scPcAV16PNsyyCbLP+OSOECRUzLAyGGs1rAbUBhDC+wVK4 rX1S/g2/MNNMBSoCXXd0vTCq2eBpxLq2lmhQrq0M8cFj322N/3PrK6w+dzgViTluEzAwRwtFHBx 7 X-Received: by 2002:a05:600c:3d97:b0:420:fdce:6052 with SMTP id 5b1f17b1804b1-42127931d7cmr15072205e9.41.1717055171744; Thu, 30 May 2024 00:46:11 -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-3557a08a878sm16571046f8f.43.2024.05.30.00.46.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 00:46:11 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Dr. David Alan Gilbert" , David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= , Christian Borntraeger , =?utf-8?q?Daniel_P_=2E_B?= =?utf-8?q?errang=C3=A9?= , qemu-s390x@nongnu.org, devel@lists.libvirt.org, Eric Farman , Thomas Huth , Ilya Leoshkevich , Markus Armbruster , Richard Henderson , Eric Blake , Halil Pasic , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 3/4] hw/s390x: Deprecate the HMP 'dump_skeys' command Date: Thu, 30 May 2024 09:45:43 +0200 Message-ID: <20240530074544.25444-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240530074544.25444-1-philmd@linaro.org> References: <20240530074544.25444-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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 Prefer 'dump_s390_skeys' which is target agnostic. Signed-off-by: Philippe Mathieu-Daudé --- hw/s390x/s390-skeys.c | 2 ++ hmp-commands.hx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/s390x/s390-skeys.c b/hw/s390x/s390-skeys.c index e7dab52a6e..12ec8a808e 100644 --- a/hw/s390x/s390-skeys.c +++ b/hw/s390x/s390-skeys.c @@ -120,6 +120,8 @@ void hmp_dump_s390_skeys(Monitor *mon, const QDict *qdict) void hmp_dump_skeys(Monitor *mon, const QDict *qdict) { + monitor_printf(mon, "This command is deprecated" + " (replaced by 'dump-s390-skeys')\n"); hmp_dump_s390_skeys(mon, qdict); } diff --git a/hmp-commands.hx b/hmp-commands.hx index c12e2c2bd9..04ae897134 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1138,14 +1138,14 @@ ERST .name = "dump-skeys", .args_type = "filename:F", .params = "", - .help = "Save guest storage keys into file 'filename'.\n", + .help = "deprecated synonym for dump-s390-skeys.", .cmd = hmp_dump_skeys, }, #endif SRST ``dump-skeys`` *filename* - Save guest storage keys to a file. + This is a deprecated synonym for the dump-s390-skeys command. ERST #if defined(TARGET_S390X) From patchwork Thu May 30 07:45:44 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: 800189 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp107565wrw; Thu, 30 May 2024 00:47:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW30iI9PKWIlq9dFYv0MrWKu5M3AGJt00WOK3LPrgZvvVMQd/wK0P72KlzdZB9e37GKr+/afVV31lPby86PwCE/ X-Google-Smtp-Source: AGHT+IEsKGoc5oTfRaHP/D3L6hp3hDhsolZnlH9db/va3HkTN9qyluEKTaLbXChTBd+nOO/aS7z4 X-Received: by 2002:a05:622a:568a:b0:43f:e328:9cc5 with SMTP id d75a77b69052e-43fe930ecc2mr16422321cf.41.1717055222062; Thu, 30 May 2024 00:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717055222; cv=none; d=google.com; s=arc-20160816; b=vonTTNBquyDXxYK+OuIPVETiecZwfb7JyucilzzyYREJi2E7CA9B8G9GrRaptrvegw tW1ePRcHLID3Kclj32TL1NCfyODjrLGHtwQfUoi6/R/tRh4lLSmwZBtgwvXm8bOnOLCi 6jgx05WDPrqu2rouDwqgfvHeJ6lnPj2BMF7VCfUOF8jHy8MK5+CO+xV8Z9UXEjJ3HIjM tpMppVPakVTmBo2zMPlaopXYDtEPS0PFvst5J2ae/x136pptFy6hoIWTGx4HJdRlDDQM gJ8bzo0+YqYV31iUXq1ZHX5InGyosSmW9shd/4lFAwa2ce7f+OpFlDX9vaGXkFbwHsWH fUKA== 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=hI2T+luarfP0HirxpjgbiSprzocV4B84X0ChzbQjTTI=; fh=DSrTnMLgb2exUDLRzb3sc8yUZn+55eMJOKYB9zwrIQI=; b=rPBEGV/s8jevIcJlQYEn2H04zI0JM5LEMMT6gNpZe/9ZsVjZKhWwLOcIZEKGAFJARt TNVyT9B32WvJDS6wy9Dy8u0UVrVBIVmBwk3GJl9hlfUPBOdhgJtM4qTZzjQPRIEbF6bo gJ19Vn2NB1rL2NUOE0IRCpV38GDJDl4dp6HP6hQMXXYckEi8SdU4/gm6Y8i2sqjr134E eWxuzarVgLN+4RIZzKbtAH2qZDRRPXwG7NPLZXSlOu5kF2t2L5pbunSHZERzA4ggI8qV OOfZpYDt2dsNWe+gNqqQm6KcdohDFaulPoBsjrrME/zozjv3GI7J8QM3f7+sSSL6p8oj Q/0w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q3AXux5E; 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 d75a77b69052e-43fb18b26desi139757631cf.430.2024.05.30.00.47.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 00:47:02 -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=Q3AXux5E; 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 1sCaUZ-0003UK-7u; Thu, 30 May 2024 03:46:31 -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 1sCaUW-0003LP-J7 for qemu-devel@nongnu.org; Thu, 30 May 2024 03:46:29 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCaUQ-0003PM-28 for qemu-devel@nongnu.org; Thu, 30 May 2024 03:46:27 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4211e42e362so7045615e9.1 for ; Thu, 30 May 2024 00:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717055178; x=1717659978; 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=hI2T+luarfP0HirxpjgbiSprzocV4B84X0ChzbQjTTI=; b=Q3AXux5EdSD1bIcUmGEVfIEbx0VL5G/RebLhc/Tf7kepOQ9ocV6f4DFdy2DClnFs7U 0u+LTSzjYRpz6/WAf8K+/1KnagPGdbhETwKPs4eCwu8plWJtQPpRY0T0gw7dt3gLBOPq Mbtg93W1hcNYZiP9UMPciA/3qC6ff4CuGR836Xbhl3mCesT/IBzGs+XAeJPlnwXnqkSF UZJZgSqn49vX45FwWmbg/X+x4+dzPNcOPDSW8x6rEqjP0YcYWqh3vq9ICoFyU3LUPVcX 82GxEZURVVh+zRr/BGwx/BRq6KRnMNj6rgXzymtycTQ/HrUxw9+HYP5E7TV3CJHoxTJ2 oulw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717055178; x=1717659978; 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=hI2T+luarfP0HirxpjgbiSprzocV4B84X0ChzbQjTTI=; b=XEP0zzR2Cg71FJYkyWUv6Lq/+rbfgRn6+TG4HjmLQ4JfrVbJshAnsdFSTgc9i2qxrY LMUxkN0HP6IofWl6iIh0PvZVj1305JQlXcrFtxfd9yHGmjQe6RWdYwqazQjQCWsuV8bz 3GHUk3uMWpvbaEUiwTLIuCDMSKiMsAQniqpdzOCHz+Hnb5d8iR68hpFM+xI80rLluWOK G5DrfEOcrg5pQjG0vf7/mbCr2EYKqwkxV96CeQcCMMykP9E3chEq00flP5D5NbETriGN ytKIy/qJ15IHADGHGfT9j5L4siikZv1JhRdklgvv4MwyO9JMKkdA/gFzTsJ0VLSl/NQu EOlA== X-Gm-Message-State: AOJu0YygVVD6QqD7CoGPFFXfVaqc0YGT/G5uN+/JSVMVj9NyYo9c44ov W4iHs/WTL7vVjcIm5Bi34eUeX8Q1PK38BZ00cpKQGCZt7HcC372qU4n8mHeIqTKnK1TuB0FtHSl z X-Received: by 2002:a05:600c:1c90:b0:421:2202:1ccf with SMTP id 5b1f17b1804b1-421279279d8mr14502305e9.28.1717055178651; Thu, 30 May 2024 00:46:18 -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 5b1f17b1804b1-4212706c952sm16556555e9.26.2024.05.30.00.46.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 May 2024 00:46:18 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Dr. David Alan Gilbert" , David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= , Christian Borntraeger , =?utf-8?q?Daniel_P_=2E_B?= =?utf-8?q?errang=C3=A9?= , qemu-s390x@nongnu.org, devel@lists.libvirt.org, Eric Farman , Thomas Huth , Ilya Leoshkevich , Markus Armbruster , Richard Henderson , Eric Blake , Halil Pasic , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 4/4] hw/s390x: Deprecate the QMP @dump-skeys command Date: Thu, 30 May 2024 09:45:44 +0200 Message-ID: <20240530074544.25444-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240530074544.25444-1-philmd@linaro.org> References: <20240530074544.25444-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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 Prefer @dump-s390-skeys which is target agnostic. Signed-off-by: Philippe Mathieu-Daudé --- docs/about/deprecated.rst | 5 +++++ qapi/misc-target.json | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 40585ca7d5..3cb43085ba 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -148,6 +148,11 @@ 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. +``dump-skeys`` (since 9.1) +'''''''''''''''''''''''''' + +Use the more generic ``dump-s390-skeys`` command. + QEMU Machine Protocol (QMP) events ---------------------------------- diff --git a/qapi/misc-target.json b/qapi/misc-target.json index 4e0a6492a9..e5109b1265 100644 --- a/qapi/misc-target.json +++ b/qapi/misc-target.json @@ -237,6 +237,10 @@ # # @filename: the path to the file to dump to # +# Features: +# +# @deprecated: This command is deprecated. Use @dump-s390-skeys instead. +# # Since: 2.5 # # Example: @@ -247,6 +251,7 @@ ## { 'command': 'dump-skeys', 'data': { 'filename': 'str' }, + 'features': ['deprecated'], 'if': 'TARGET_S390X' } ##