From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3F9A606A337 for ; Thu, 3 Dec 2026 11:57:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=SJr05Qdw Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZ5Rh-0001rT-K5; Thu, 03 Dec 2026 06:57:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZ5Rf-0001qt-IH for qemu-arm@nongnu.org; Thu, 03 Dec 2026 06:57:51 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xZ5Rd-0000CS-QT for qemu-arm@nongnu.org; Thu, 03 Dec 2026 06:57:51 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4a5b2be99a8so110287795e9.2 for ; Thu, 03 Dec 2026 03:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796299068; x=1796903868; darn=nongnu.org; h=content-type:content-transfer-encoding:mime-version:message-id :in-reply-to:references:user-agent:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=XF4laJK0qHFEnofhprU8Nb1krsOdTolzxwVJ3jLlIxo=; b=SJr05Qdw2pPyA1mLsQjAY/rWkMPDvtKGiphaLFFZF4R5YP1OZYTEmlJ14HflirXDng LVIt3ugRKjRDh8uI+6lvEQvRUDRnwsaCRxpHXCgBmu88i9H4oGL8BOCbWVK33cuA6gp5 GLmYr1wz0QyhAS0bivHX9olVz8zVFaAq2USANP+D3U3KcEBQG3fGlkzJMaYqUpfbGb2q mMQXG+5eBLzkvepbAEcuuUD0wI+lEwPDlD5p8Y5W0qq3yp2ICeZMFgrM/Y7eHcUCCGH3 XnGFHNqtdgFferRk9ylBloiBUsIsnQ3unERva3pZt//QCGzoB2OWFSbBdZyggYHkZ+ac cW3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796299068; x=1796903868; h=content-type:content-transfer-encoding:mime-version:message-id :in-reply-to:references:user-agent:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=XF4laJK0qHFEnofhprU8Nb1krsOdTolzxwVJ3jLlIxo=; b=CrYY4ZBPzhJAwDt6K/XWWx801hh1YzlhA6prSYgvU7HAi3oRpsMpU02TfI9HwPCPxq 4XqA52aYYuQlnxwRF757gNArmq1vgFpEkIIh81IbhiIFySH4MOi2m3XXrHV4dBOU9VWK bSgPlfYmbfc4ew/ULK+PAF+g2mS1kfVbC7XJeDo358Vd+22U3x8ewzY6PaudevZGtR5H 4IJ6Y4d0AY1ZTDobXw+BwxmQ7zIOWyu+ibK43V6Ml4/uW31VeLv3LkW24zR70WoyYVRT Lqmu7WYLvzMg8PSlhep2wTfX9YY+JOS2vHxTaPJp79lKPNTLYNPpn6KEJBN254s+6iE9 3GBw== X-Forwarded-Encrypted: i=1; AL+hErGwsZXe55SLoJ1Q9ZwmTbcGlnrJt8CMph/GrfidNYQ+gqLEe5fptOJotDkfUCycc6fv89a6lFCC6Q==@nongnu.org X-Gm-Message-State: APuU4Z9ZnDI+yznc5BFgmW8J/GdXfXpiAV/pdbXfyZaFu15921jOJuqI eh1QA5SuDyPC1EOsUD31rYKaasUiCzx9QuL4pllV2Asg/CT0lX/hS0aAk5LNudT0SOk= X-Gm-Gg: AZFdTZeJvaZQXFlr5s881yOyAwCXW+k0l2YwTzJIiUGzqc+UPwxTB/arw2ZA5ZuR/+V YzgYZ2QnLT1UqZCXoDA/02GvlcrY/n6tSJ5u44NsHZwzpNaA1RoMI5RJwb66rvdShsnxfzQQrsv nKErHrYtxzfB7+5nepy7RCb2XIsMfUteH0G+GM94dfMjQ/A5NqCB+J6kGjqVRy6dYC7y/xSExoO LIJGJwsyPrHN7oZ1Hfmo4f9i/WRKLlpugDXeHn/1o1AYHqU7Mlz+ngmfHgtk/4OAzIhD50EZKGp C21SoNqeG6EDV43VkiEJpu0JNfVRPPPmF7OQmi8hrw2Hf8ERkEgSb465IQ9gQO+7m65aLLJCiZv 8ENBT/wif1TYHaZoUK2C2cWadzVXap0Lyur5ugvB7h8SPVIPsMDWSDurdofYGdf6neaRHrIwMHH 859DDRbHtHAJdDWHtQa4nWp7gyZoLQyeujkL8l0PC6zjRf3Uwii2s19fhKPXPgezOGXfP0z53TE ssySVH1ue8HndZ01wjejJxjgTz08XOIf2A0ScqPM4Lwv8HophmT8LjneICKeVlZNSiK2Wm5cSXd LsHvNy1+GTg4LRIKaO9ILkPgaFWVG9eJqOT83mJfPXweOzQXiHH4ySKfQ60nfr6c+8wb6+2Xxfs kWVdnufJX+9jvk+XBRJGCMTtyyNEzvHgiH4f6K6WSnN8E7mcw2EIM7CJcadWS6QYR2M/zbVOUby CA3MgZOm7/NOl2XLaulVzCJ428C0Jw2+GpNhJPBJsMCYh4sQ33+UdanCK7FVpODz7YJ58A X-Received: by 2002:a05:600c:4e0d:b0:4bb:5f07:10d7 with SMTP id 5b1f17b1804b1-4bb8882445cmr794203365e9.26.1796299068036; Thu, 03 Dec 2026 03:57:48 -0800 (PST) Received: from meli-email.org (athedsl-4431069.home.otenet.gr. [79.129.140.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb90655f5asm847876335e9.1.2026.12.03.03.57.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Dec 2026 03:57:47 -0800 (PST) Date: Thu, 03 Dec 2026 13:53:32 +0200 From: Manos Pitsidianakis To: qemu-devel@nongnu.org, Peter Maydell , qemu-arm@nongnu.org Cc: Philippe Mathieu-Daud=?UTF-8?B?w6k=?= , Manos Pitsidianakis Subject: Re: [PATCH v2 06/77] target/arm: GICv5 cpuif: Implement ICH_PPI_PRIORITYR_EL2 User-Agent: meli/0.9.0 References: <20261203111118.1380524-1-peter.maydell@linaro.org> <20261203111118.1380524-7-peter.maydell@linaro.org> In-Reply-To: <20261203111118.1380524-7-peter.maydell@linaro.org> Message-ID: X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8"; format=flowed Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=manos.pitsidianakis@linaro.org; helo=mail-wm1-x332.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_FILL_THIS_FORM_SHORT=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, 03 Dec 2026 13:10, Peter Maydell wrote: >Implement the ICH_PPI_PRIORITYR_EL2 registers, which are the >hypervisor's interface to its guest's PPI priority register state. >As with ICC_PPI_PRIORITY_EL1, we define these programmatically to >avoid listing out 16 near-identical cpreg definitions. > >Signed-off-by: Peter Maydell >--- Reviewed-by: Manos Pitsidianakis > target/arm/cpu.h | 1 + > target/arm/tcg/gicv5-cpuif.c | 21 +++++++++++++++++++++ > 2 files changed, 22 insertions(+) > >diff --git a/target/arm/cpu.h b/target/arm/cpu.h >index fc919deeaa3..3944a2ef104 100644 >--- a/target/arm/cpu.h >+++ b/target/arm/cpu.h >@@ -601,6 +601,7 @@ typedef struct CPUArchState { > uint64_t ich_ppi_active[GICV5_NUM_PPIS / 64]; > uint64_t ich_ppi_pend[GICV5_NUM_PPIS / 64]; > uint64_t ich_ppi_enable[GICV5_NUM_PPIS / 64]; >+ uint64_t ich_ppi_priority[GICV5_NUM_PPIS / 8]; > } gicv5_cpuif; > > struct { >diff --git a/target/arm/tcg/gicv5-cpuif.c b/target/arm/tcg/gicv5-cpuif.c >index 2f9da181d58..24065274690 100644 >--- a/target/arm/tcg/gicv5-cpuif.c >+++ b/target/arm/tcg/gicv5-cpuif.c >@@ -481,6 +481,12 @@ static void gic_ich_ppi_active_write(CPUARMState *env, const ARMCPRegInfo *ri, > raw_write(env, ri, value); > } > >+static void gic_ich_ppi_priority_write(CPUARMState *env, const ARMCPRegInfo *ri, >+ uint64_t value) >+{ >+ raw_write(env, ri, value); >+} >+ > /* > * ICC_APR_EL1 is banked and reads/writes as the version for the > * current logical interrupt domain. >@@ -1024,5 +1030,20 @@ void define_gicv5_cpuif_regs(ARMCPU *cpu) > }; > define_one_arm_cp_reg(cpu, &ppi_prio); > } >+ /* Similarly for ICH_PPI_PRIORITYR_EL2 */ >+ for (int i = 0; i < 16; i++) { >+ g_autofree char *name = g_strdup_printf("ICH_PPI_PRIORITYR%d_EL2", i); >+ ARMCPRegInfo ppi_prio = { >+ .name = name, .state = ARM_CP_STATE_AA64, >+ .opc0 = 3, .opc1 = 4, .crn = 12, >+ .crm = 14 + (i >> 3), .opc2 = i & 7, >+ .access = PL2_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .nv2_redirect_offset = 0xb80 + (8 * i), >+ .accessfn = access_gicv5_ich_reg, >+ .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ich_ppi_priority[i]), >+ .writefn = gic_ich_ppi_priority_write, >+ }; >+ define_one_arm_cp_reg(cpu, &ppi_prio); >+ } > } > } >-- >2.43.0 > >