From patchwork Fri Apr 8 14:15:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 558844 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp390315map; Fri, 8 Apr 2022 07:50:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlhnSufPh969RWPeU8Sp+Kabf9+cpCAo92AX8RI+TEAbceKc8ard4ovHhUtjgsKVxVxoSr X-Received: by 2002:a25:268a:0:b0:641:1592:80f8 with SMTP id m132-20020a25268a000000b00641159280f8mr1013966ybm.328.1649429423425; Fri, 08 Apr 2022 07:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649429423; cv=none; d=google.com; s=arc-20160816; b=Tp6f0NfQd/Od5yQ7cXavY8B7sWfr5dKbWFigEkttdmuIihcduNFQbeI0cGs9UVnfw2 HSPIW8WJqK98nfvQw4/8i8U4ofg3Dyztgssyvh/Vra20S/POa6dXe7RLX7bJbIogsCO9 NvUz1GDqi50CIbOAQCmeANFnNOSibHsOr2QZUc76nEhFVSNvwkoq3W/CfdaXscW8GygO efs+O6cKELOVf5TQ6rdCtEVOS7ibf1x4c8Ef1t6257oXmtU/74TMVuZEoU6RUJRo+MYN mBe5sDqa/FQgGhhnWJL3v5fr4vx/XFfrnrTPsZARJPZIMcl3y4f87HddLLs3C+E86ZZg rvgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=LtZz4rR4JTiEt09cH5eXBwQY/mFcoau4efeuuU9fWxY=; b=jIJbsbqWdkn1DcQftuGY3Gd1wOTMzfpbLY3+SQTyq9DhysgAsraZhHFBgfcRzVISk1 igw3oyYa00efa1DYhpW7+YBIUTMetyfuQ4FtwsWrQs2NK08eFobBZT4e9qzlaLlMhWW4 xEcZF8lrZPTomONvMylklomRmTaIOOwZSoIhYHVTqHIozhFq0EP2TRNolSho3IS5r5OM 5Nkd3Ix6ku+1XRQYuKUklgVMoyL+KB+UdY2EmzYPCdAP9B0kMbfFgfnGauDGLwBM2P90 i8NAMpDObqv3d4CMBq482n6ctMYpm69tzuzAl99Aqj1Guc9VDfPRtTXNK2FvBN5aQovU Xuiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IQ0AkNqG; 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 j11-20020a25550b000000b0063d78f67d23si637408ybb.90.2022.04.08.07.50.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Apr 2022 07:50:23 -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=IQ0AkNqG; 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]:54070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncpwL-0000QC-Rm for patch@linaro.org; Fri, 08 Apr 2022 10:50:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncpPa-0007Kx-Os for qemu-devel@nongnu.org; Fri, 08 Apr 2022 10:16:30 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:36354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncpPX-0002T0-PB for qemu-devel@nongnu.org; Fri, 08 Apr 2022 10:16:30 -0400 Received: by mail-wm1-x334.google.com with SMTP id i6-20020a1c3b06000000b0038e710da2dcso7685813wma.1 for ; Fri, 08 Apr 2022 07:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LtZz4rR4JTiEt09cH5eXBwQY/mFcoau4efeuuU9fWxY=; b=IQ0AkNqGdxjR/lWNvljBqpTxtqpHNLVzTAA44jXIE74VUMSoHwm/2Irh6DYtgdOwhq aIcTotjRAflCsP4Cuycm1vlF4LPjQnjV6EpoYYXIasG/As2jjIsDvFyVRqNooaMnA/Bl OtQX0SPIc7nnxYtmZEWcmmANuhHbW++vRdlKU2HNtLxmRCb3h09VrCTIGBuWFWGeGmEC nrqTq0D0yUQvv5XkV0nMCuwa0q5Oe1ikibGvIgseWGFCyZORDRZP9BG2B6CzjqFcz7Du kulpemzrKOeQo3lzGswYo/ecJf7eMKs6nzhHaB0Yu0cC+jasH1MjSBXbChFcXNfed6uU 872Q== 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=LtZz4rR4JTiEt09cH5eXBwQY/mFcoau4efeuuU9fWxY=; b=k2X1Mt2YwedF/MEpRqLnnYjEf8468Jef2JYFw9rxfqZF+KTzN6XfZhtynwguOPqhqJ yU8DqP/EQbnwIEKI0S69AG+rovdw6PpOcJdOxbew58mYABP0bcgdORXntLhZAODIuswN gVKqHlxUNDA4W8oA2VV4SPo2+XvW+7vOadK3SzkjOZyT5IQU1KGcqoQCFg9Nheb+g7aD +cmXGGcjQWaFSFA/PJabupaNcjXXCYhXGuspNmeE1DKAzhkLXh0fo5hJr6v9McR+Pczz Erakb3hqEvcM/yGZKpZNlbDTDHLm7yx2JIRo5WGMxCHUhWV8tac5LKQQeKzVBDg0GYot yNdQ== X-Gm-Message-State: AOAM532G3gquogDOJP31YXWP/D70C8e+kzDYnviXT0KvtA/mFsUPjCzs MyUln9GL07UtgcGtm24l2n8/HmIrYwYwhA== X-Received: by 2002:a7b:cf10:0:b0:38e:6a68:98c3 with SMTP id l16-20020a7bcf10000000b0038e6a6898c3mr17264660wmg.156.1649427386366; Fri, 08 Apr 2022 07:16:26 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id i3-20020adffc03000000b0020616ee90dbsm11498849wrr.42.2022.04.08.07.16.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 07:16:26 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 36/41] hw/intc/arm_gicv3_redist: Implement gicv3_redist_inv_vlpi() Date: Fri, 8 Apr 2022 15:15:45 +0100 Message-Id: <20220408141550.1271295-37-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220408141550.1271295-1-peter.maydell@linaro.org> References: <20220408141550.1271295-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x334.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: , Cc: Marc Zyngier 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 --- 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 a586c9ef498..0738d3822d1 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)