From patchwork Fri Apr 22 10:04:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 564810 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp355854map; Fri, 22 Apr 2022 03:57:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjZMGjnp0mi2KbvtIrw4j2/ywQoMm5SUwRLZNTpw1Ep6470X4kOLPt23C936NCL1zXyplR X-Received: by 2002:a05:622a:28f:b0:2e1:cebc:8c44 with SMTP id z15-20020a05622a028f00b002e1cebc8c44mr2668694qtw.648.1650625063243; Fri, 22 Apr 2022 03:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650625063; cv=none; d=google.com; s=arc-20160816; b=000s/YZ2Fk8ABVz56NkMzWY1Y3v/N9MLlAVcztcqDz5mCn2XaCDG0DL2U/M1aMlbn5 SuKc1MrqEdgJXoTga21ZdvsfEDzBG0gAZKF+4aC+fECOhbmXoDNnx51oaBXKG2PipCHb /js+G5B80eu+7X0+kCp1NTk19pwCLp1QtzWWCBPNxAUnrTClqAuvxqM17VBB45HS+IFZ TwFW3ytqX2JT+QKo+tcXorn6Ga79MO5N1XqLaneK1/BJcaUgjN6l9qEvMTwr0IKz9Uvr 5BkQ0n7s7I9Rq2E7OZoChrxAWJS27Ylmk97KsmbjeEI+8tOTFfh+cAsmThhz4DGbx0U9 g7AA== 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:to:from :dkim-signature; bh=mPgmj5RVzDAw4cIOgcMQ1RCLJRgE1k4EGIsJB8ypEvA=; b=x4yoNeSbA8s73LHemrm3kl52jfZQRStZLbkBczcwD+cxocD3pt2AVvgN7Z/lOwRu9l k4C6L186zXUKNPpzpwCLPdLeHzi5RNGc7sFEILWxJykDEK0SX22VJR8FYj6s7rMKcXQg 2Yba9WQziOkUbN5z6BvGFjEHRkv2i36gdXegNWIVQP6XbLinn4zEAGohon7j3wCKjQg8 XTxiCXGh2xJn2GTsOBQytnyvNY3T72VVf6L5X2eH+ITuQnEDiFutayY5M4iuSsrYA7kv uckouLatX8yjv7uqDlki0KOb4bjxfUfpwZkoWgT/ktRSvLkV3X8TOADdOAPlayz4A79X Mz3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zGETRI5O; 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 x127-20020a379585000000b0067e4be2392dsi2023392qkd.370.2022.04.22.03.57.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Apr 2022 03:57:43 -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=zGETRI5O; 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]:52990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhqyr-00086v-RF for patch@linaro.org; Fri, 22 Apr 2022 06:57:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhqA3-0004yM-CX for qemu-devel@nongnu.org; Fri, 22 Apr 2022 06:05:11 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:43565) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhqA1-0002rG-EU for qemu-devel@nongnu.org; Fri, 22 Apr 2022 06:05:11 -0400 Received: by mail-wm1-x32f.google.com with SMTP id n40-20020a05600c3ba800b0038ff1939b16so5090734wms.2 for ; Fri, 22 Apr 2022 03:05:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=mPgmj5RVzDAw4cIOgcMQ1RCLJRgE1k4EGIsJB8ypEvA=; b=zGETRI5Op4KYHdCpVfyRZKvL0y/ysalWTYXUnBesVAZnDnbGxiDGetBEcLS8RS6CZ/ 6fA2OwD+hFKA9cXmmFJcwxrN9xVXQ27NyL2W1qbVvpstF+9v1ASmGPYzrMAFXP28M4Ex dEeCt09fOgb+56H1bmYqGNGrKIqIVp2Em4LhABYzonurzfXUTVZIqxtL6YzeST6r7FtM 467toEYyWietXnpKXt4aS2YqSaokv+z0TVhuVWNkV+M9yfHl8oS9GwpZyWZQSUSL9KQp RQS1oeN++MxNxpNHurJ3Z6Zdv04IrNR7fycK8RHotKnMdBII/Z7m0OML/2J0oZ2a3pOo H7Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mPgmj5RVzDAw4cIOgcMQ1RCLJRgE1k4EGIsJB8ypEvA=; b=DxSIrajKLicntvy8Z+f5E3uF1tR/8lfESUNhzf3lyv4ACG+CABJ/v9sJ8V731/bgRj g1oU+sS292G4n8QL/CeD5lrsiRPKFfKZrbdS+3JaOrVDd+VjRAW1yZG2CmfvQiqldHlc 39YHxKhRK8OGzaeHT0mHmgY5HEFpnvvVnZfIVRc+GHm3LgipH01Dp5ym5W5oo+5DyJk0 g2vcNg3iu7P1sY5CDnW2XfsdRwQCJRcFsl5tYa6FHkH1T895SIyNJ0wOhRd6uWpNRFZ4 5djlGnT68kuO/HXDYG4AoV6x8XBK9GfS5miXW6i+qCZRD1L8I6Cc/Ze9paIGtatMLKd/ +gVA== X-Gm-Message-State: AOAM531Z6m9V4J0tN6qOIw2swE/7LMn7Ymnx0ThqQJW3TXWWwdB0mFOt I5IT6X4SHGH0oaTgYMP4ue/8TXphptQyOg== X-Received: by 2002:a05:600c:4ecc:b0:392:938a:d85 with SMTP id g12-20020a05600c4ecc00b00392938a0d85mr12352783wmq.165.1650621907872; Fri, 22 Apr 2022 03:05:07 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id e16-20020a05600c2dd000b0038ed449cbdbsm4312148wmh.3.2022.04.22.03.05.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 03:05:07 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 36/61] hw/intc/arm_gicv3_redist: Implement gicv3_redist_inv_vlpi() Date: Fri, 22 Apr 2022 11:04:07 +0100 Message-Id: <20220422100432.2288247-37-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220422100432.2288247-1-peter.maydell@linaro.org> References: <20220422100432.2288247-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Implement the function gicv3_redist_inv_vlpi(), which was previously left as a stub. This is the function that does the work of the INV command for a virtual interrupt. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20220408141550.1271295-37-peter.maydell@linaro.org --- hw/intc/arm_gicv3_redist.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/intc/arm_gicv3_redist.c b/hw/intc/arm_gicv3_redist.c index 34f4308e980..bcb54bef76e 100644 --- a/hw/intc/arm_gicv3_redist.c +++ b/hw/intc/arm_gicv3_redist.c @@ -1102,9 +1102,12 @@ void gicv3_redist_vinvall(GICv3CPUState *cs, uint64_t vptaddr) void gicv3_redist_inv_vlpi(GICv3CPUState *cs, int irq, uint64_t vptaddr) { /* - * The redistributor handling for invalidating cached information - * about a VLPI will be added in a subsequent commit. + * The only cached information for LPIs we have is the HPPLPI. + * We could be cleverer about identifying when we don't need + * to do a full rescan of the pending table, but until we find + * this is a performance issue, just always recalculate. */ + gicv3_redist_vinvall(cs, vptaddr); } void gicv3_redist_set_irq(GICv3CPUState *cs, int irq, int level)