From nobody Sun May 19 06:50:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646680693335566.1771737362347; Mon, 7 Mar 2022 11:18:13 -0800 (PST) Received: from localhost ([::1]:36116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRIs0-0001Vu-9f for importer@patchew.org; Mon, 07 Mar 2022 14:18:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRIq2-0006WQ-73; Mon, 07 Mar 2022 14:16:11 -0500 Received: from [2607:f8b0:4864:20::c2f] (port=36361 helo=mail-oo1-xc2f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRIq0-0005vq-1R; Mon, 07 Mar 2022 14:16:09 -0500 Received: by mail-oo1-xc2f.google.com with SMTP id n5-20020a4a9545000000b0031d45a442feso19015179ooi.3; Mon, 07 Mar 2022 11:16:06 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:3b4a:a86f:f27d:30ef:6eb6]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7283093oiw.2.2022.03.07.11.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DkWCadGq3jWunLQWL70TerHXhNjwuuhn9DOc5h+GCHo=; b=MIqPuC+I39sCBhp5ZM3tmg3O9heypKiE7YBVHZT/JYI5e5SmGuTDtZR7fTgAQ3c35O NApCLguuuwM+RgctUsRCLFUOtyEAziAmjXOLXP0J08TttvS9b9wCExREs1f4JDM2Z+Rm tU9ZW+5DNnRdsX22PSLWBHIOjRghZd1zdI5ZVOGR6I98gP7sQCZ0HQ3TFb649Or1k46w dlPId/43lLH0OJt5KwoB2abCwq4Tmv+N0wUhr623b8TqSQ508uz/wKNIvKwK5LFQBSmU 7ulBpkQFU4f2HdjicxzLS052d2YPxjuZb6WhcJw/CM0CA0Eo7BRRDvX7kP54uBxuTTmO feYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DkWCadGq3jWunLQWL70TerHXhNjwuuhn9DOc5h+GCHo=; b=MUEkRuD1ws6bjGWxIhWxCrVO5M+Z3hdyaQEfkKAZw5QiVtPGFELJe7n1GARdLdHCMf JDtNpjp/bDJxVagBnpzG0zf8bqKxMpZNkfBWznhGFWtMnTTBYMp9W9iPeNXRVgLLhH/r NYLe1p4G8JUjbvV09ow+wGVai7/lNPXH6KYbbXx8ZVskMnmzycgZQz+F+k7UJX/6uft9 THwk5QI8OKz/GWcIZl5prHHO64faKT5OyGPdV4hM+PAQH4VkUOxkVAK288nRlUTB18Ix h/kIWo1MZ83ASOBMyvYM4d7JvBWOD6V91lzfBSki6XjK/PX9UYpP1x5DXfrlc6fTcUCV 9bMg== X-Gm-Message-State: AOAM533/xOk/aokWupFw0C8W5iJ76StdOsERUdTh5nOC7kGQ0I9eE6t0 mqTPOBRzP5Xe3ZeOeM1G/Iq5LjTJdcI= X-Google-Smtp-Source: ABdhPJyeMgr1OqpyhFJLL97FKIB3ZHeaopybZj38a6OKL3zhSKs94aMh1xUGvYUPO/PcGp8KvAmFGQ== X-Received: by 2002:a05:6870:a986:b0:da:b3f:3279 with SMTP id ep6-20020a056870a98600b000da0b3f3279mr240587oab.297.1646680565587; Mon, 07 Mar 2022 11:16:05 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH 1/9] util/log.c: add LOG_UNSUPP type Date: Mon, 7 Mar 2022 16:15:45 -0300 Message-Id: <20220307191553.429236-2-danielhb413@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307191553.429236-1-danielhb413@gmail.com> References: <20220307191553.429236-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::c2f (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::c2f; envelope-from=danielhb413@gmail.com; helo=mail-oo1-xc2f.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646680694295100003 Content-Type: text/plain; charset="utf-8" The existing log type 'LOG_UNIMP' is being used as a way to indicate that a certain feature is not implemented, and to indicate that a feature is unsupported. Most of the time both cases are similar, until you want to debug a guest that is running a not so common OS (e.g. AIX guest in a pseries machine). The result is that you can be overwhelmed with lots of '-d unimp' messages of hypercalls and have to do code searches to verify whether a specific hypercall is something we never considered adding versus something that we decided to not support. Note that while the first case is eligible for further investigation the second is already settled. It would be helpful to able to distinguish between both. This patch adds a new log type called LOG_UNSUPP to represent this subset of features that we are aware of and we decided to not support. Signed-off-by: Daniel Henrique Barboza --- include/qemu/log.h | 3 ++- util/log.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/qemu/log.h b/include/qemu/log.h index 9b80660207..884a81495b 100644 --- a/include/qemu/log.h +++ b/include/qemu/log.h @@ -14,7 +14,7 @@ typedef struct QemuLogFile { extern QemuLogFile *qemu_logfile; =20 =20 -/*=20 +/* * The new API: * */ @@ -64,6 +64,7 @@ static inline bool qemu_log_separate(void) #define CPU_LOG_PLUGIN (1 << 18) /* LOG_STRACE is used for user-mode strace logging. */ #define LOG_STRACE (1 << 19) +#define LOG_UNSUPP (1 << 20) =20 /* Lock output for a series of related logs. Since this is not needed * for a single qemu_log / qemu_log_mask / qemu_log_mask_and_addr, we diff --git a/util/log.c b/util/log.c index 2ee1500bee..3e19859ab3 100644 --- a/util/log.c +++ b/util/log.c @@ -334,6 +334,8 @@ const QEMULogItem qemu_log_items[] =3D { #endif { LOG_STRACE, "strace", "log every user-mode syscall, its input, and its result" }, + { LOG_UNSUPP, "unsupp", + "log unsupported functionality" }, { 0, NULL, NULL }, }; =20 --=20 2.35.1 From nobody Sun May 19 06:50:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16466806866710.3539404530712318; Mon, 7 Mar 2022 11:18:06 -0800 (PST) Received: from localhost ([::1]:35350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRIrt-00010B-KO for importer@patchew.org; Mon, 07 Mar 2022 14:18:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRIq2-0006WS-JE; Mon, 07 Mar 2022 14:16:11 -0500 Received: from [2607:f8b0:4864:20::234] (port=39668 helo=mail-oi1-x234.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRIq1-0005w8-AF; Mon, 07 Mar 2022 14:16:10 -0500 Received: by mail-oi1-x234.google.com with SMTP id j83so5638724oih.6; Mon, 07 Mar 2022 11:16:08 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:3b4a:a86f:f27d:30ef:6eb6]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7283093oiw.2.2022.03.07.11.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:16:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YZqC2tqWRaEws4L76k5C4aX9zCjhx7iXS9FGXRr/OCs=; b=G7IR0GQGsNGLj2x21XHD12uCVJArLAudFG3Qwidk565OsvTLzChHItAAKMzys/FbFM iQNdzWkBmCQLsoGbuHbYRqavVerodCPnpGwzveDoevI574eXf0LdWgGpma66clMARsFj NlRKlb7s/0zUzh6/z6hPiwn9LXWWjSH1tbktjRNnOgeYAwflObW/9bL5qVTeEIqsmMAH ghgsLZTH+dVDE9DyOZRo8v2yKvg0A7terAZgWvH2KH98gOY9PBmRzozKp/+vg+IFdEM8 CoOYTghpMjgUY5W7CoCJjtnO2MFzReZ1oYwIM0HUkzXv73w8S5MFHzRko2HOiEKk0m9Y /v/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YZqC2tqWRaEws4L76k5C4aX9zCjhx7iXS9FGXRr/OCs=; b=RkNzi0DlztqcNqguVv+M8VCNEmw9Vh+73w7gc2T/WNSQCoXJENec86/0bNZZgJ5fVB Bf3rkCZvZ2V4AvW3S0T+Rz5yu4rV2r/yBnSzFHa1v47nNi32YfPQqcKThvalBwC66pY6 qeVd8CxTPD4RJdN57FMGn4PA7jqSmr0ZzocYdDb/vA6LdjRvh5K0EiZJXU0dDCBlbNY1 sqn6i8kVPfKwtwD7jH8ePBKKl8+yIOrt2AsRATl+rquDgu7YNnwWgSMB5A7uVQ7Nlbz2 4NdLlLydUwU2i51Zst/WJWlAXklNoO/YagrwTVtK98NBZV6ize0B8d7b8jye0ayZSGf5 E8vQ== X-Gm-Message-State: AOAM532S92mRVSh3e25VJJ0rwHUUeaqJCBUeFudKqtC9OWuIs5dcVONA D9VGO3q+cyRA81JjzBySZ0yX2FwQzyA= X-Google-Smtp-Source: ABdhPJxnCNsoDA4aZ8pk6cc0aIHl8Bdgq3blAsZi7R0wcNpuH08Z/ZA6hxKh4wTXO4yC9568itcCQg== X-Received: by 2002:a05:6808:140c:b0:2cf:90b8:ad91 with SMTP id w12-20020a056808140c00b002cf90b8ad91mr279144oiv.33.1646680567648; Mon, 07 Mar 2022 11:16:07 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH 2/9] hw/ppc/spapr_hcall.c: log h_clean_slb() as unsupported Date: Mon, 7 Mar 2022 16:15:46 -0300 Message-Id: <20220307191553.429236-3-danielhb413@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307191553.429236-1-danielhb413@gmail.com> References: <20220307191553.429236-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::234 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::234; envelope-from=danielhb413@gmail.com; helo=mail-oi1-x234.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646680689900100002 Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Henrique Barboza --- hw/ppc/spapr_hcall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index f008290787..f6778d6857 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -865,7 +865,7 @@ static target_ulong h_set_mode(PowerPCCPU *cpu, SpaprMa= chineState *spapr, static target_ulong h_clean_slb(PowerPCCPU *cpu, SpaprMachineState *spapr, target_ulong opcode, target_ulong *args) { - qemu_log_mask(LOG_UNIMP, "Unimplemented SPAPR hcall 0x"TARGET_FMT_lx"%= s\n", + qemu_log_mask(LOG_UNSUPP, "Unsupported SPAPR hcall 0x"TARGET_FMT_lx"%s= \n", opcode, " (H_CLEAN_SLB)"); return H_FUNCTION; } --=20 2.35.1 From nobody Sun May 19 06:50:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646680922657758.7786692489336; Mon, 7 Mar 2022 11:22:02 -0800 (PST) Received: from localhost ([::1]:43986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRIvh-0006nK-GX for importer@patchew.org; Mon, 07 Mar 2022 14:22:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRIq4-0006X2-Oa; Mon, 07 Mar 2022 14:16:12 -0500 Received: from [2607:f8b0:4864:20::c2a] (port=39529 helo=mail-oo1-xc2a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRIq3-0005wU-5C; Mon, 07 Mar 2022 14:16:12 -0500 Received: by mail-oo1-xc2a.google.com with SMTP id q1-20020a4a7d41000000b003211b63eb7bso818367ooe.6; Mon, 07 Mar 2022 11:16:10 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:3b4a:a86f:f27d:30ef:6eb6]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7283093oiw.2.2022.03.07.11.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:16:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Hg5wMiiCQQI9fvTqpQhv1av6PEraDSZthGbyDg+4i7g=; b=pCBQwszgfXP8AuxsdfvwGqMxegu5pxOkGSTWnbu3bXblEuasjqjNJ3ccqT0AB1+usf 3BSarbA0b8ZSozDSET+bkAtTZfFD6x0y8JoJ6ngzyI+7yG+hq2qOAYWA7bGScw34HHnz MLLxcHYJLg3XwTBvdKs7v2V6Cu4YUzz26ZMZPryUB5GoSOL2vxu2TSG8fV+RegzQ3c/T lHD5zAoKXEsR0jh1tXCeLUVIaonqUQHwcKqN5M5UnUXnJok0uIQdG5apaxYyznJiLUFi OBSfnCHT1u78H3JZmn7mECC8q5rfnaEraqIjjukUdEdlJcE/4Psdzx9MWxKMPnfD7GgT X4WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Hg5wMiiCQQI9fvTqpQhv1av6PEraDSZthGbyDg+4i7g=; b=J1b8j14n251Q8UTFddScCPXEm4YLm9AfaJ1czlnw7LpzsgPFtTaPvMGrriJHV8JkxJ OyX8fp0IKWDzvIAlX9ZJIyWhKhsbQCywOo+wSwYW4tUQbJMlrlbUWNIPw6eq2IshpzxT x29G/b9JeqwuAAUCn8MvGMaKjGOSpTEvI3pGFPH4VgkFSD55VczJBtWbEteIliR7Ufo9 4WKC1/hzdLd/jEdLfx3/w1wRd5DGQgMcF+IJ2Tl34JUXZ5VlU8oyu6pzn8Ce8uZKj9ea st4sdoivamsed5PgauBtx1+FFDUzNwUZSPoI13AUqNYB1Cg2Xkekfs5q9UkKQbrDPRKI MVnA== X-Gm-Message-State: AOAM532K/Ad0xu2cqKL6/lQey0qZv7P5K39CjNiEZceeQjfx0XC2y75B ta2IFWWTq7wX57zOR3LQUQeCaoAM9zI= X-Google-Smtp-Source: ABdhPJyIAKeoVVlwwamcLJdfZfqGD2c4/FmfcglwYUWDSc0JF4SgWicnKN1/gXt+9u4JWdMHEKMlPA== X-Received: by 2002:a4a:5295:0:b0:2ed:96b4:8efa with SMTP id d143-20020a4a5295000000b002ed96b48efamr5307642oob.38.1646680569723; Mon, 07 Mar 2022 11:16:09 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH 3/9] hw/ppc/spapr_hcall.c: log h_invalidate_pid() as unsupported Date: Mon, 7 Mar 2022 16:15:47 -0300 Message-Id: <20220307191553.429236-4-danielhb413@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307191553.429236-1-danielhb413@gmail.com> References: <20220307191553.429236-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::c2a (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::c2a; envelope-from=danielhb413@gmail.com; helo=mail-oo1-xc2a.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646680923297100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Henrique Barboza --- hw/ppc/spapr_hcall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index f6778d6857..5839b6a749 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -873,7 +873,7 @@ static target_ulong h_clean_slb(PowerPCCPU *cpu, SpaprM= achineState *spapr, static target_ulong h_invalidate_pid(PowerPCCPU *cpu, SpaprMachineState *s= papr, target_ulong opcode, target_ulong *ar= gs) { - qemu_log_mask(LOG_UNIMP, "Unimplemented SPAPR hcall 0x"TARGET_FMT_lx"%= s\n", + qemu_log_mask(LOG_UNSUPP, "Unsupported SPAPR hcall 0x"TARGET_FMT_lx"%s= \n", opcode, " (H_INVALIDATE_PID)"); return H_FUNCTION; } --=20 2.35.1 From nobody Sun May 19 06:50:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 164668091624746.54233880440722; Mon, 7 Mar 2022 11:21:56 -0800 (PST) Received: from localhost ([::1]:43990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRIva-0006nN-Sb for importer@patchew.org; Mon, 07 Mar 2022 14:21:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRIq6-0006a5-RK; Mon, 07 Mar 2022 14:16:14 -0500 Received: from [2607:f8b0:4864:20::c2d] (port=40863 helo=mail-oo1-xc2d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRIq5-0005ww-FN; Mon, 07 Mar 2022 14:16:14 -0500 Received: by mail-oo1-xc2d.google.com with SMTP id h16-20020a4a6f10000000b00320507b9ccfso19051269ooc.7; Mon, 07 Mar 2022 11:16:12 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:3b4a:a86f:f27d:30ef:6eb6]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7283093oiw.2.2022.03.07.11.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5HMoFpGnQQyw41QxQcu8bpX16VVn3HjQWgitpykCQhk=; b=IBinz2cN5GmYMpqxRBowIzqFIVvIKakjzwnXe50vq1cH/yB3WcQx7UVxdtdFHStCHm BH+2uOa6WTpdhj+T5LcnnjUF8BZlxmF5kK01Yu1Q4wR2YWjmjyy4RK4EnMLcLhhSLSxz 4JIWYKyv0vca3n8I/4SlIhamy06OqHfDog8b9U8NqpSMmiaDQRp38c92ZcNU7UsNJIcs DrLECBJvS8Z1kRyNxol/CoElmTm3Atv2+jxCyprGzCV/XktA3Hf/448slJ38hjHSv8dG jQvAxB8XaFW5C8fkFHYMDrLCX8uGPsYNmECO3L9hBWXUo+I1x4pO0J49DWDOd1TGXAnN MXHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5HMoFpGnQQyw41QxQcu8bpX16VVn3HjQWgitpykCQhk=; b=fd/zqnbHhfnGqvGy6tNVIg47RUqGet+jMhhehvUq21OpmZxMthE8UX0xhr2cKxWbps GgenBhvro978guCO1NP5X6bQ5d66KsvgIsqM19QXDCjSv7QyqcvyBmrNR202jUsr25dB g+7bQjNnx/pGiTjfnf2mFNZ8GYC5FeurbBaD42a+sB8l60w/V0wKrXvTN1ob/7L2RnXI M4H+DW7mhwFj9f+rX5w+qHzaneSQEHigD+M8JrRPOPLUqD8pzcSBqTYqjNluqSfkN0aR o3S6OXfyA9+9IMTj6ZYIIbZhXUHx8pff9SE6rPbOXVMAQ0WnO2im8CZdqvoqlRRDNaol k3PA== X-Gm-Message-State: AOAM531YvRFDcK+jKDgc7I7CsRlxcFXuvsW3itYrHuYGADTYA6bqkA+8 JXtjbBf6HeJuTV/v7pYOvym6GfIUYKA= X-Google-Smtp-Source: ABdhPJwfY8L998SwyCpj5p84n1dXZEiU1ASIQGKjzGwGn7HaGs/P+XPSHU4UfmVNgnhr1gkZViUp1w== X-Received: by 2002:a4a:e402:0:b0:320:bf45:3193 with SMTP id t2-20020a4ae402000000b00320bf453193mr4836176oov.77.1646680571940; Mon, 07 Mar 2022 11:16:11 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH 4/9] hw/ppc/spapr_hcall.c: log h_copy_tofrom_guest() as unsupported Date: Mon, 7 Mar 2022 16:15:48 -0300 Message-Id: <20220307191553.429236-5-danielhb413@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307191553.429236-1-danielhb413@gmail.com> References: <20220307191553.429236-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::c2d (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::c2d; envelope-from=danielhb413@gmail.com; helo=mail-oo1-xc2d.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646680917339100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Henrique Barboza --- hw/ppc/spapr_hcall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index 5839b6a749..7cfb17689b 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -1544,6 +1544,8 @@ static target_ulong h_copy_tofrom_guest(PowerPCCPU *c= pu, * This HCALL is not required, L1 KVM will take a slow path and walk t= he * page tables manually to do the data copy. */ + qemu_log_mask(LOG_UNSUPP, "Unsupported SPAPR hcall 0x"TARGET_FMT_lx"%s= \n", + opcode, " (H_COPY_TOFROM_GUEST)"); return H_FUNCTION; } =20 --=20 2.35.1 From nobody Sun May 19 06:50:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646681191982527.4381700584745; Mon, 7 Mar 2022 11:26:31 -0800 (PST) Received: from localhost ([::1]:50618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRJ03-00032j-0f for importer@patchew.org; Mon, 07 Mar 2022 14:26:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRIq9-0006fj-Ul; Mon, 07 Mar 2022 14:16:17 -0500 Received: from [2607:f8b0:4864:20::c34] (port=45588 helo=mail-oo1-xc34.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRIq7-0005xP-Hg; Mon, 07 Mar 2022 14:16:17 -0500 Received: by mail-oo1-xc34.google.com with SMTP id u30-20020a4a6c5e000000b00320d8dc2438so5743269oof.12; Mon, 07 Mar 2022 11:16:14 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:3b4a:a86f:f27d:30ef:6eb6]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7283093oiw.2.2022.03.07.11.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:16:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MFhJX6sPwAsLk3zIu0zGlVQywYX19KE2BjcgVmZ5HXg=; b=oeVvooZAz1avhbRwqnVM0v5P8MEPzniaPADRugOdEbye2FzIEnRA5+qRL0IPc81v/G drZbdDY6PY1K2bt418juw+7Gsn0OQ5M18ZsZJxTZyh2Zqy0EdXNKOEhvgGNMwC8H6di6 2RSnpp9AY9L+13XhubmxANslvD8rhMeUGgwERPFQ0NKHwaF9BR/VTd7qNqZxdpAruj5X WtsxVqvjUqOxom4elIXOynNAnOGg7Kt3WE7fogBIjh0/tlXvg+BqzdwT6lUCHfER+Gw/ W923GtFXhAE4o8A+Fm2WkybePOuaZJjl8RgYnIBVDpr54i/BFDdunlu0TIpB9rQ1I/AF R6hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MFhJX6sPwAsLk3zIu0zGlVQywYX19KE2BjcgVmZ5HXg=; b=L54csg489eInJjU1C1e4TIKGNfcmYls3WHZb2q+K6ZLSOLupSMRydgEOW4lJdPdhti C1xJt/c/LTQPqFpZ/IYPg2TjGfOcdmRbCUpmD5fgCzpH849F+UBG//cnmEhu0fQjxMwy Qb+FqvS95Mn+sE3A4aDc1JYMjMl9tIWHVIvqtZxewY50uCQJDIGivC7sxpvPVUHBlam1 GN+bDifuCKO23JqgYSNvoS2hId7KPhc3rGeuoL+kFk7Z0LUWFCJK4Vu51x6oqp+omOnx 35XlHBdAg8prxdryOX95IbKr/Q+WLH70R14XMYjeKbM1e37Zhoq1f1wejLzbHACUWNdK 0Jcw== X-Gm-Message-State: AOAM5316zfhF4RzXtHSzXIGbO8DfDqokkeVRL6pfPJ5m8WScxAskMhh3 GkDXCMya2Xh8JNfnY+9hCmHImrzlVK0= X-Google-Smtp-Source: ABdhPJzBDZ3ncQIA7S6tcCTkpfAvf+/DSeuHPgTnmOfjroVBKXs4e3HRN/UGbp+1z6M7ROn3zDgtrg== X-Received: by 2002:a05:6870:e243:b0:d9:aa9e:d6ee with SMTP id d3-20020a056870e24300b000d9aa9ed6eemr273300oac.43.1646680574140; Mon, 07 Mar 2022 11:16:14 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH 5/9] hw/ppc/spapr_hcall.c: log H_GET_EM_PARMS as unsupported Date: Mon, 7 Mar 2022 16:15:49 -0300 Message-Id: <20220307191553.429236-6-danielhb413@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307191553.429236-1-danielhb413@gmail.com> References: <20220307191553.429236-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::c34 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::c34; envelope-from=danielhb413@gmail.com; helo=mail-oo1-xc34.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646681192421100001 Content-Type: text/plain; charset="utf-8" This hcall is part of the Partition Energy Management (PEM) option, described in PAPR+ V2.89 section 14.14.2. We do not support any form of energy management in QEMU, so instead of logging this hcall as unimplemented let's log it as unsupported. This hcall is popular with AIX 7.2. The terminal gets quite busy with these debug messages using -d unsupp: Unsupported SPAPR hcall 0x00000000000002b8 (H_GET_EM_PARMS) Signed-off-by: Daniel Henrique Barboza --- hw/ppc/spapr_hcall.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index 7cfb17689b..b572ef50bb 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -1549,6 +1549,21 @@ static target_ulong h_copy_tofrom_guest(PowerPCCPU *= cpu, return H_FUNCTION; } =20 +static target_ulong h_get_em_parms(PowerPCCPU *cpu, + SpaprMachineState *spapr, + target_ulong opcode, + target_ulong *args) +{ + /* + * This HCALL returns energy management parameters as part of + * the PEM (Partition Energy Management) option. We do not + * support it. + */ + qemu_log_mask(LOG_UNSUPP, "Unsupported SPAPR hcall 0x"TARGET_FMT_lx"%s= \n", + opcode, " (H_GET_EM_PARMS)"); + return H_FUNCTION; +} + /* * When this handler returns, the environment is switched to the L2 guest * and TCG begins running that. spapr_exit_nested() performs the switch fr= om @@ -1887,6 +1902,8 @@ static void hypercall_register_types(void) spapr_register_hypercall(KVMPPC_H_ENTER_NESTED, h_enter_nested); spapr_register_hypercall(KVMPPC_H_TLB_INVALIDATE, h_tlb_invalidate); spapr_register_hypercall(KVMPPC_H_COPY_TOFROM_GUEST, h_copy_tofrom_gue= st); + + spapr_register_hypercall(H_GET_EM_PARMS, h_get_em_parms); } =20 type_init(hypercall_register_types) --=20 2.35.1 From nobody Sun May 19 06:50:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16466807425521000.9115015183529; Mon, 7 Mar 2022 11:19:02 -0800 (PST) Received: from localhost ([::1]:37316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRIsn-0002IR-HN for importer@patchew.org; Mon, 07 Mar 2022 14:19:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRIqA-0006jl-UN; Mon, 07 Mar 2022 14:16:18 -0500 Received: from [2607:f8b0:4864:20::231] (port=40461 helo=mail-oi1-x231.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRIq9-0005xf-E7; Mon, 07 Mar 2022 14:16:18 -0500 Received: by mail-oi1-x231.google.com with SMTP id o64so2850979oib.7; Mon, 07 Mar 2022 11:16:16 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:3b4a:a86f:f27d:30ef:6eb6]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7283093oiw.2.2022.03.07.11.16.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FRWCH98XPq/on6xqEriC+OBRkjcQuXvoPJWeWNNgKjA=; b=HLvIv41f/z8CPA4GeyKzv6YnbCvNQ8EfH1I3esNOBDGpb40XC+/ifskAkEX9IeyCW1 BHapbl1SUpZY0+vtxUtW1sPzEGXbf51Ado+1h3qjtQp2oznWfGKmXc2ZTXvyDl1pNBns BJVKeUlpUz79zAGUvzDTjWApP7id36RIAZbsuAYIaB1i7Lc1tn5vbGI9J1dqzIDfOC2C oPgRrFIeKGgO+A0Hkh2bp21tVdznBFYiwTpbx03OjSSy5h+EIDVjeQ6Rx1VXjbfAMOdt CPEQHjKtda+ad5tzRDVi15jQi42O7kRCnLjq0nglVAs4+i3+MBZU/TzS9tYaxszUgtVT AD+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FRWCH98XPq/on6xqEriC+OBRkjcQuXvoPJWeWNNgKjA=; b=q8gzzih8yNjEZYwkeHOnK77C+UMvYnC3fyYWXmqUO42PJXXz8RiChDH9k4NFmZKysq hfK9ww0PQOFG4tLGYrp7lbuu+eITeFjzeyB++QqfmK6cpSOm2F8mVq+O8DzYb3DGmLJL DiK4TDX6ZObG60nIAdrc1CcDfBIuUJqUpcwmhydlNGMnHWxzvhELxXk0XWI+DiywMXUH 11rfWhsF6JS8x8F6MYcJ6zgj0VgCuLIvqIlofGb1ELZ9JdITlgFDJdbHof4V4kr1aYwZ oL9yge90uakElretIuMvPsFOvFu5kvtVcpFNBYsdHwbwChtliBjlYpYZcdtKxCxNQYdJ lQMg== X-Gm-Message-State: AOAM531rDV+h4YZXx39Old7hDml6olE+9/CE/OSmSyRAkbva3Nvyjih1 Dy9XDArUJJHNN7v9Ggwt5QFj7fnPD7A= X-Google-Smtp-Source: ABdhPJzQEQ4DycCFdp9YhTSzD/fJr4xZ78RYsoRWSWPhhhMwQlhAXdO4ZlHE9a9hTp7ElaNpc/JKmA== X-Received: by 2002:a05:6808:1717:b0:2d4:87c4:1ccf with SMTP id bc23-20020a056808171700b002d487c41ccfmr323750oib.178.1646680576059; Mon, 07 Mar 2022 11:16:16 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH 6/9] hw/ppc/spapr_hcall.c: log H_BEST_ENERGY as unsupported Date: Mon, 7 Mar 2022 16:15:50 -0300 Message-Id: <20220307191553.429236-7-danielhb413@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307191553.429236-1-danielhb413@gmail.com> References: <20220307191553.429236-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::231 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::231; envelope-from=danielhb413@gmail.com; helo=mail-oi1-x231.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646680744655100001 Content-Type: text/plain; charset="utf-8" This is another hcall that is part of the Partition Energy Management (PEM) option. As with h_get_em_parms(), we do not support it. Signed-off-by: Daniel Henrique Barboza --- hw/ppc/spapr_hcall.c | 27 +++++++++++++++++++++++++++ include/hw/ppc/spapr.h | 1 + 2 files changed, 28 insertions(+) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index b572ef50bb..db6cb6bb89 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -1564,6 +1564,31 @@ static target_ulong h_get_em_parms(PowerPCCPU *cpu, return H_FUNCTION; } =20 +static target_ulong h_best_energy(PowerPCCPU *cpu, + SpaprMachineState *spapr, + target_ulong opcode, + target_ulong *args) +{ + /* + * This HCALL is described as follows in PAPR+ V2.8 section 14.14.2.1: + * + * "This hcall() returns a hint to the caller as to the probable impact + * toward the goal of minimal platform energy consumption for a given + * level of computing capacity that would result from releasing or + * activating various computing resources." + * + * In short, this HCALL provides a hint about what would happen with + * the energy consumption if the OS tries to increase/decrease + * the performance of a given device/CPU/mem. + * + * This is also part of the PEM option and, as with h_get_em_parms, is + * not supported. + */ + qemu_log_mask(LOG_UNSUPP, "Unsupported SPAPR hcall 0x"TARGET_FMT_lx"%s= \n", + opcode, " (H_BEST_ENERGY)"); + return H_FUNCTION; +} + /* * When this handler returns, the environment is switched to the L2 guest * and TCG begins running that. spapr_exit_nested() performs the switch fr= om @@ -1903,7 +1928,9 @@ static void hypercall_register_types(void) spapr_register_hypercall(KVMPPC_H_TLB_INVALIDATE, h_tlb_invalidate); spapr_register_hypercall(KVMPPC_H_COPY_TOFROM_GUEST, h_copy_tofrom_gue= st); =20 + /* Unsupported PEM option h-calls */ spapr_register_hypercall(H_GET_EM_PARMS, h_get_em_parms); + spapr_register_hypercall(H_BEST_ENERGY, h_best_energy); } =20 type_init(hypercall_register_types) diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index f5c33dcc86..7995bc0cb6 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -535,6 +535,7 @@ struct SpaprMachineState { #define H_SET_MPP 0x2D0 #define H_GET_MPP 0x2D4 #define H_HOME_NODE_ASSOCIATIVITY 0x2EC +#define H_BEST_ENERGY 0x2F4 #define H_XIRR_X 0x2FC #define H_RANDOM 0x300 #define H_SET_MODE 0x31C --=20 2.35.1 From nobody Sun May 19 06:50:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646681001427212.42966284739225; Mon, 7 Mar 2022 11:23:21 -0800 (PST) Received: from localhost ([::1]:45650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRIwy-0007yI-8g for importer@patchew.org; Mon, 07 Mar 2022 14:23:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRIqD-0006t9-Cs; Mon, 07 Mar 2022 14:16:21 -0500 Received: from [2607:f8b0:4864:20::235] (port=42926 helo=mail-oi1-x235.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRIqB-0005xx-K2; Mon, 07 Mar 2022 14:16:21 -0500 Received: by mail-oi1-x235.google.com with SMTP id q189so669822oia.9; Mon, 07 Mar 2022 11:16:18 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:3b4a:a86f:f27d:30ef:6eb6]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7283093oiw.2.2022.03.07.11.16.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qy335OhrjyrG3jDdTIztLVLPccV3Ae5EOw3+piCfjgM=; b=Jx1/YofKYLarYto2ZH8NHUcsnxcN7qH2HYMNg1/6TZbdW/Xrb69edWfcTsyECPHuin XAm/MM6AgfTCPAJ2OHfZuCrmMuaiBzwNsB7hSpc8i8R80ayAJi98qE+rZjbVxbIeG5cq JoXGzRZxlYxDuV16RTKOWMGoRypaAKu+CpZp1E4Ytn6P7dVHTAI1NDvjeTV051ZZHjd7 w+9Nxnf5dkTwEPaE76ckcYL6jHIRwc3Dv9EUG3+WzKImWBojrJZ/pLSu6cvQtDXYN+V0 QF3encRiMq9UcIIdn2z38hPbz5/LLqP7VuHFo+mgLinDPaM50KjT1xtv820NkMhK29bX 4aAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qy335OhrjyrG3jDdTIztLVLPccV3Ae5EOw3+piCfjgM=; b=VgYGwAEuWyRgbkyjUjuvjE/nuBXY9psfhMAg/3z3FjhHxbINhAlPBshzGIznjNSar2 +fAf2P9cze3AMeu7dCGHJn+bq3HrHbI9xaXeIbS9o0oSdXo1w+/xuH4iB2fW/FzgVrIX lN7JofbJ9WpZpGv0um6vrfukzE9D7xJ5SQODMQPgwZL4gG1qw9q7pkVf/GTTyJnWi6no GPFngqW9WYSeRtXAG+eyorvfIrC/NvCNgfuwp4tWqOaWu8sdEZ74Rl+JQsVWe1KZzHmr KBBsxAoNrEnPgeb+wMjYNxtCXAUNFRuK0rOYoh85QYMp3JM8EhInVZ/bwdrQTHrRX3zA 9vYw== X-Gm-Message-State: AOAM531e0ItjFkjjHu92+Hmg55kj4G+agWw50wo79fuSkUK3KvnEM6rk 6F2PxoUp8z3e/ri/zBO1hwUYt4/qY3Q= X-Google-Smtp-Source: ABdhPJyqywSAdmQLLeQ4dEpFlu7dffLb7wI9QOS1E2CgepuJbHvcLg2u/QZR0uc0QMa/2pwkDjEYxg== X-Received: by 2002:a05:6808:1703:b0:2d9:d499:958b with SMTP id bc3-20020a056808170300b002d9d499958bmr273707oib.191.1646680578103; Mon, 07 Mar 2022 11:16:18 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH 7/9] hw/ppc/spapr_hcall.c: log H_QUERY_VAS_CAPABILITIES as unsupported Date: Mon, 7 Mar 2022 16:15:51 -0300 Message-Id: <20220307191553.429236-8-danielhb413@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307191553.429236-1-danielhb413@gmail.com> References: <20220307191553.429236-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::235 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=danielhb413@gmail.com; helo=mail-oi1-x235.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646681002243100001 Content-Type: text/plain; charset="utf-8" This hcall is VAS (Virtual Accelerator Switchboard) related. VAS is a hardware feature that allows kernelspace and userspace to communicate directly with Nested Accelerators (NX). A description of VAS can be found at [1]. QEMU does not implement neither VAS nor NXs. AIX guests will query VAS capabilities once during boot. Log this hcall as unsupported. It is worth noticing that VAS has a handful of other hcalls (H_ALLOCATE_VAS_WINDOW, H_QUERY_VAS_WINDOW, H_GET_NX_FAULT and others), but the AIX guest seems to be satisfied when H_QUERY_VAS_CAPABILITIES returns H_FUNCTION and give up trying the others. This means that there is no need to log all of them as unsupported in QEMU. [1] https://www.kernel.org/doc/html/latest/powerpc/vas-api.html Signed-off-by: Daniel Henrique Barboza --- hw/ppc/spapr_hcall.c | 18 ++++++++++++++++++ include/hw/ppc/spapr.h | 1 + 2 files changed, 19 insertions(+) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index db6cb6bb89..fdce44daf7 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -1589,6 +1589,20 @@ static target_ulong h_best_energy(PowerPCCPU *cpu, return H_FUNCTION; } =20 +static target_ulong h_query_vas_capabilities(PowerPCCPU *cpu, + SpaprMachineState *spapr, + target_ulong opcode, + target_ulong *args) +{ + /* + * This HCALL is VAS (Virtual Accelerator Switchboard) related. VAS + * is not supported in QEMU. + */ + qemu_log_mask(LOG_UNSUPP, "Unsupported SPAPR hcall 0x"TARGET_FMT_lx"%s= \n", + opcode, " (H_QUERY_VAS_CAPABILITIES)"); + return H_FUNCTION; +} + /* * When this handler returns, the environment is switched to the L2 guest * and TCG begins running that. spapr_exit_nested() performs the switch fr= om @@ -1931,6 +1945,10 @@ static void hypercall_register_types(void) /* Unsupported PEM option h-calls */ spapr_register_hypercall(H_GET_EM_PARMS, h_get_em_parms); spapr_register_hypercall(H_BEST_ENERGY, h_best_energy); + + /* Unsupported VAS h-calls */ + spapr_register_hypercall(H_QUERY_VAS_CAPABILITIES, + h_query_vas_capabilities); } =20 type_init(hypercall_register_types) diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 7995bc0cb6..10df519b0a 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -545,6 +545,7 @@ struct SpaprMachineState { #define H_INVALIDATE_PID 0x378 #define H_REGISTER_PROC_TBL 0x37C #define H_SIGNAL_SYS_RESET 0x380 +#define H_QUERY_VAS_CAPABILITIES 0x398 =20 #define H_INT_GET_SOURCE_INFO 0x3A8 #define H_INT_SET_SOURCE_CONFIG 0x3AC --=20 2.35.1 From nobody Sun May 19 06:50:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646681399039787.6143537385717; Mon, 7 Mar 2022 11:29:59 -0800 (PST) Received: from localhost ([::1]:57004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRJ3O-0007XN-Ky for importer@patchew.org; Mon, 07 Mar 2022 14:29:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRIqF-00070L-0Y; Mon, 07 Mar 2022 14:16:23 -0500 Received: from [2607:f8b0:4864:20::235] (port=43748 helo=mail-oi1-x235.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRIqD-0005yE-HW; Mon, 07 Mar 2022 14:16:22 -0500 Received: by mail-oi1-x235.google.com with SMTP id w127so5917736oig.10; Mon, 07 Mar 2022 11:16:20 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:3b4a:a86f:f27d:30ef:6eb6]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7283093oiw.2.2022.03.07.11.16.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cL3cI4FY/fVeRwL4pUn2Dy69CS535x5dvlyRPTrkSFg=; b=NOq63a0Mq0Hpus8WoOTnG/jYruqD9s0tgcRCQApQL5OuvZ1SUh3CFsxt6vX/BYZHG9 UafbyckR3du3QXC5b+Mh6j4qpCaRv0cRA/3t0Wv9GTgl8upj+82njTsb9WlFvufqVwGC 3aKzQTHaGfxF2NVS0ovqTPCdSB9b1gS5SjVx4fDx6CgupRTiMHnIXR+IbPh4ee9ON2AV wzEdgqKMF8Su0XcrbjZtdMw7dv2sOItSNVq2dHwwwt6madbVEV/F4dp2V9EDe4ep2pUn 5/Mb0hyKOPpZIjLHLbcH4Qu5NW0bQsUwzU1ZjfmEAN65YIn9j21KO4w5xcvWR3lG5G75 4k6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cL3cI4FY/fVeRwL4pUn2Dy69CS535x5dvlyRPTrkSFg=; b=c0SX/ee05f4K+RVemk1JdfE8TrziJvz3b2byzkBWzw3qiPn/pn5ZJNMn43/uupjO/o hwpLom79Uaz5A1MDWBJ5qRBl+sH5XgWprB25OK50kByRdCQ6+0AmE3GD86S6ztssHrJj u6jw/LyDS8qwfCQ+AdgqkeeOBLjmaxx/LMBUL1p6yZ1qoC6pu+vXAyVHa+MHusIDea2p OxkXO0+qJ1TDHTPP58KPo9IANAAGzvyf4EHWngU1Hsv+8g+VWiSuPZt0F3EzWKzzBj5B W6Vdl7i0VP+FxbNanH77jkCyL8pqvWMie3ov341BSMGO2pgfbwM2B0xaDF0aK3cZI3r1 thFg== X-Gm-Message-State: AOAM533c1XtdH8I0IPI+RS1Offa6EhzGu6cTaGvX9lp6gJYCJEWv/LH/ OzVB7rpMK6GWw6RpMi5J6rV60fR7U4o= X-Google-Smtp-Source: ABdhPJx1Qd5YJhYPksXN864qe8T07TobDaXUC0WXkoEMv6LUtF4fHryDo0hT/WsjHE7hxb+lEfu8DA== X-Received: by 2002:a05:6808:1586:b0:2d5:1211:5785 with SMTP id t6-20020a056808158600b002d512115785mr313675oiw.0.1646680580118; Mon, 07 Mar 2022 11:16:20 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH 8/9] hw/ppc/spapr_hcall.c: log H_GET_PPP as unsupported Date: Mon, 7 Mar 2022 16:15:52 -0300 Message-Id: <20220307191553.429236-9-danielhb413@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307191553.429236-1-danielhb413@gmail.com> References: <20220307191553.429236-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::235 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=danielhb413@gmail.com; helo=mail-oi1-x235.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646681419394100001 Content-Type: text/plain; charset="utf-8" H_GET_PPP is a SPLPAR hcall that we aren't able to support because, at least for now, we can't retrieve any performance metrics of the partition. Mark it as unsupported. Signed-off-by: Daniel Henrique Barboza --- hw/ppc/spapr_hcall.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index fdce44daf7..f7240fbd41 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -638,6 +638,21 @@ static target_ulong h_prod(PowerPCCPU *cpu, SpaprMachi= neState *spapr, return H_SUCCESS; } =20 +static target_ulong h_get_ppp(PowerPCCPU *cpu, + SpaprMachineState *spapr, + target_ulong opcode, + target_ulong *args) +{ + /* + * H_GET_PPP (partition performance parameters) isn't supported + * the same way h_get_em_parms or any other performance/metric + * related HCALL is not supported in QEMU. + */ + qemu_log_mask(LOG_UNSUPP, "Unsupported SPAPR hcall 0x"TARGET_FMT_lx"%s= \n", + opcode, " (H_GET_PPP)"); + return H_FUNCTION; +} + static target_ulong h_rtas(PowerPCCPU *cpu, SpaprMachineState *spapr, target_ulong opcode, target_ulong *args) { @@ -1894,6 +1909,7 @@ static void hypercall_register_types(void) spapr_register_hypercall(H_CEDE, h_cede); spapr_register_hypercall(H_CONFER, h_confer); spapr_register_hypercall(H_PROD, h_prod); + spapr_register_hypercall(H_GET_PPP, h_get_ppp); =20 /* hcall-join */ spapr_register_hypercall(H_JOIN, h_join); --=20 2.35.1 From nobody Sun May 19 06:50:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646681591885167.37116408995746; Mon, 7 Mar 2022 11:33:11 -0800 (PST) Received: from localhost ([::1]:34640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRJ6T-0003CJ-PG for importer@patchew.org; Mon, 07 Mar 2022 14:33:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRIqH-00076L-40; Mon, 07 Mar 2022 14:16:25 -0500 Received: from [2607:f8b0:4864:20::22e] (port=42920 helo=mail-oi1-x22e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRIqF-0005yZ-J1; Mon, 07 Mar 2022 14:16:24 -0500 Received: by mail-oi1-x22e.google.com with SMTP id q189so670040oia.9; Mon, 07 Mar 2022 11:16:22 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c7:3b4a:a86f:f27d:30ef:6eb6]) by smtp.gmail.com with ESMTPSA id t40-20020a05680815a800b002d48ffad94bsm7283093oiw.2.2022.03.07.11.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 11:16:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ksVu9IpA+ghWKaCiI8cvIiyWjIJRCNBiEozz6JbHPWs=; b=X2ihgi9heGxnhmM5wQ2rNtX+S2aQGQbfeEfbeWD8iUaydaD115zMeL6a23BYbjvKBY pfFvqvK/YwDf9j4+w7JrND9q6OnoKTaoIbgzMsVZg+RBm6LYpav+OGLk0L82QCLLcb+Z t6dDOJu3Wls9JZHoheetikusueTiJ3WnOUwtBUZy5qUjqAQ5PNP/oxR9R0d/EeiSxdsu WMPw44r1yZHSvucKtquzYgaxY3BjxqO+eKHaLsLmwSTPVMa/iMyu/NqLTBY1HGacpU9n XFfoFVLbfuXt5Pl5JOKcvBlsiCHVwfsYHii0YpLdQPdEtz5p0A/UQ//IezUb+yK9RJi7 Afzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ksVu9IpA+ghWKaCiI8cvIiyWjIJRCNBiEozz6JbHPWs=; b=sKcumWkUfuYQYA/Djnf9OBFfqJ7iFio3ErAt/cXFK863QbCHnLr6X6AZCznwiTJbCc pgN2Z/W3B74vl+1FuwB6LqEWhePH2fBDa7zDsTvd2dP43kOMvwCnmeHYaeAshkyPkwfM ZbqpGk2rauqTX8huHQAOrk9qpXqmEtRhYTVJBd0HWLzpxtf/hKs3xcBy1+su3PCorgCp CXqGF7ukNpTDA6KAf9XPTU+AEt7fCIcOmtWHd4gmlJrJKyKJPZkcAofAkLVZqEk2nL1Q xkPfTMGGMBDp8hqPvkcl/N3GlNV1DeURWy9wCCu79LOlBug1BGDqgFOedQwD9BXnki9/ zn5g== X-Gm-Message-State: AOAM532DeezFY3wOi2d2LQ6qnZn474towHUM9X2KeKP2xq4PrC9AeJuS sqFNMKwXr8joq1dlzc3c7REPNYOVzrk= X-Google-Smtp-Source: ABdhPJyag3Q0edWJNG8j483kQEmrycrQ5gsYIsyiAtH++nxFCB5ughd8GmZ6aUEE++eJfUy8Dbtvlw== X-Received: by 2002:a05:6808:23c1:b0:2d7:390e:5c2a with SMTP id bq1-20020a05680823c100b002d7390e5c2amr331987oib.108.1646680582168; Mon, 07 Mar 2022 11:16:22 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Subject: [PATCH 9/9] hw/ppc/spapr_hcall.c: log H_VIOCTL as unsupported Date: Mon, 7 Mar 2022 16:15:53 -0300 Message-Id: <20220307191553.429236-10-danielhb413@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307191553.429236-1-danielhb413@gmail.com> References: <20220307191553.429236-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::22e (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=danielhb413@gmail.com; helo=mail-oi1-x22e.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Daniel Henrique Barboza , qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646681593089100001 Content-Type: text/plain; charset="utf-8" H_VIOCTL is one of many VIO (Virtualized I/O) hcalls that we do not support in QEMU. An AIX 7.2 guest will attempt to execute this hcall a couple of times during boot, receiving H_FUNCTION replies every time, and eventually give it up. There are many VIO hcalls and we don't support none. H_VIOCTL seems to be the one that convinces the guest that we don't have VIO support in the platform, so let's add this one as unsupported in our model. Signed-off-by: Daniel Henrique Barboza --- hw/ppc/spapr_hcall.c | 14 ++++++++++++++ include/hw/ppc/spapr.h | 1 + 2 files changed, 15 insertions(+) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index f7240fbd41..ddaeea84fc 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -1618,6 +1618,17 @@ static target_ulong h_query_vas_capabilities(PowerPC= CPU *cpu, return H_FUNCTION; } =20 +static target_ulong h_vioctl(PowerPCCPU *cpu, + SpaprMachineState *spapr, + target_ulong opcode, + target_ulong *args) +{ + /* We do not support any VIO (Virtualized I/O) HCALL */ + qemu_log_mask(LOG_UNSUPP, "Unsupported SPAPR hcall 0x"TARGET_FMT_lx"%s= \n", + opcode, " (H_VIOCTL)"); + return H_FUNCTION; +} + /* * When this handler returns, the environment is switched to the L2 guest * and TCG begins running that. spapr_exit_nested() performs the switch fr= om @@ -1965,6 +1976,9 @@ static void hypercall_register_types(void) /* Unsupported VAS h-calls */ spapr_register_hypercall(H_QUERY_VAS_CAPABILITIES, h_query_vas_capabilities); + + /* Unsupported Virtualized I/O (VIO) h-calls */ + spapr_register_hypercall(H_VIOCTL, h_vioctl); } =20 type_init(hypercall_register_types) diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 10df519b0a..232ac7650d 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -530,6 +530,7 @@ struct SpaprMachineState { #define H_DEL_CONN 0x288 #define H_JOIN 0x298 #define H_VASI_STATE 0x2A4 +#define H_VIOCTL 0x2A8 #define H_ENABLE_CRQ 0x2B0 #define H_GET_EM_PARMS 0x2B8 #define H_SET_MPP 0x2D0 --=20 2.35.1