From patchwork Wed Dec 18 18:15:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 851750 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp1076091wrq; Wed, 18 Dec 2024 10:18:31 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUJVZiCmH0Yq1muNPUDtwhuNEUscfE4b+zs/RE7VMEM8T/p1GVS5l6B8EWyPfhjYNKi8foFYg==@linaro.org X-Google-Smtp-Source: AGHT+IElVU/uCi6FXZFsDsLc9px+F4/HA4Aqcuu+F8tAoKbvbfw5OAZk28g2F2j/k0lr4N9p/ds7 X-Received: by 2002:a05:6214:194e:b0:6d8:8874:2126 with SMTP id 6a1803df08f44-6dd14b9c2f6mr11122696d6.11.1734545911618; Wed, 18 Dec 2024 10:18:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734545911; cv=none; d=google.com; s=arc-20240605; b=F8tfWMRpPyeLNlkQi1ZZ0Qzuw4rG9c9TzX9TqHz0UIczA6j5Cz07temUCI/2BmcILI 1PWkD6XP1Uu1JMC7YA1UFMh0sGbJkGN6Q4djt8ZEAV3n7wNoxLhRl84wqaJT0dHyJXhn yUvWBoQ84hP9CJYUMUAiF6PI8zcNnS/tk1HBaSBo470+2cag21K6OBPzX4A+jBGwkMkK wTSGoa7ZghN+pXNBNwGtoGj6VM6chubzYcFx1H9plAZAP+5N5yJ4NWtkEhkn67u+FZ7d 0qvFUH+494w7UIqzUZrh/OI9qYNw3Pmg/goclY4m0Rja96f8zo9R3wIor5NUglnlnL9o F9dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=qgbFUsQ4LmsnQTjxQWiCGeGbjUd9LSSKaKM5ICyfigY=; fh=n+7/i9AUPusiia8VmzoiBlwSlyFeXwpWgjR6Od+Rvhk=; b=lOL0+N7GjCKHII8rGoNE0ocERZ0OjiUuiWUOD5Sl3rjqtP7Ee7ge1HbUM32g95AN4h zQmC39LDbx6+YR+jXA4ICc7Mrxq0vOGHWrdP9tDfIZGMhZhpfBq0lvUIPrBAqjGgFy+P UVKJrkFRl/+Dyt0KU+Idkqwt6sq7TGc0goe3Tr5071tNSreVlAV/pScD910uLsZies8p 5kllMzxD7hewpGHpN4lLzjJX3tsuILxluqoyexFO0LhNspdWL3as3AyPda3fWfyJ2Ltf HkffjkPhbc/IuDQaD/KKD7qO9e9hjhfbdTtYbjNQB69k1jqsNRqxQyX/r3684hc4zbh7 nb9Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UjyIva9X; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6dccd37063csi126608326d6.372.2024.12.18.10.18.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Dec 2024 10:18:31 -0800 (PST) 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=UjyIva9X; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNybH-0001s0-AT; Wed, 18 Dec 2024 13:16:47 -0500 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 1tNya2-0001B9-BR for qemu-devel@nongnu.org; Wed, 18 Dec 2024 13:15:30 -0500 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNyZy-0007Uy-Bv for qemu-devel@nongnu.org; Wed, 18 Dec 2024 13:15:28 -0500 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-aa67f31a858so1249098766b.2 for ; Wed, 18 Dec 2024 10:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734545714; x=1735150514; 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=qgbFUsQ4LmsnQTjxQWiCGeGbjUd9LSSKaKM5ICyfigY=; b=UjyIva9XScvdl7q79LKn/PUlbq9D16pI1nvHdhX0+h2WOJnPsLt6YjgmcwrnJdMGXB YFDI0pp4MjyT7bVtwV4EFkXo2b9Aaghz5UDNkOrWQ1htemxd+0LzsKaEDVCkuShLvkGc 8jaNiuxjcRyyShpq2r/6hCmJSj/ijZbZwqq0DN9irLjQ27exab5Ya+3oLDW7rpweEEWe ETfRFJP50eLwlzvhZhV3/iBEv0vlgQ3u27p1Sk+DenKYXWjIQ3iTpSnZ9/nE8bduoe9O WgGvqeZ52B2nMNQYKxkujFxvLROtsMoCIRTkOUCCf65MeCAKFaGjBJR+h/FYPxHSBSR5 NnrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734545714; x=1735150514; 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=qgbFUsQ4LmsnQTjxQWiCGeGbjUd9LSSKaKM5ICyfigY=; b=P+qFghOrDwfEypZwKB+h5tLsyELE6GXUU5HNnV2Cc21Kkac3FiM12Pk9fkEAW784KC wStBUtjcOJOkDnjoM0HEjUMcIeiM5xZ5s7f/phBNXkH5jyz3OJpcGBgV/eXSLOr+AgyA OCnVUz4Z/lMWSeVjOQkeGwParnXCUJSOPs0QFwO4v8n53RSFz9b4qABxF3iqM6CEgoAM kGQqJEeyrgrbVwGFIBsZyuUz5HH6MRflsslUE5JqsUyIWTYp8KNEgE9HAXiZcrjXjJTf yJEjq6SZZJtVv39hZ2NyvY/Jj1XTHRVaa1UCG8ssMuejlB20rQuIehA/gpf3X8YfXrsy ZHAA== X-Gm-Message-State: AOJu0YyLYC07PHSF2EfiytxgRodgt58NZhd6yQxiHSARc8WXafkm9iEq dR5/mU8iKQIEza1KCNqyxnvuBLDdC9O6bp6UIjnchjhuNbBDG0M0YdCeno5+ji7LuDuoJTpCVn2 5oV0= X-Gm-Gg: ASbGncsWzDQtc/Py+0c0I/yWbYtnds+w6yBRTq0NGaFY6/gL62hTRwMwR2P3FWQqjcC ytEhWOutl66BDM4R9742fFBeLMAEz0mcGmpo2NRS5jNNKuLLOj6baSy4g8lwsxzRxcoJ1gQBxfQ OHydbGHN/BrdYFwTlWJn6UCg6AokoVDy5BPliQcPoACXXXzaSUOG6NArKsan/+HcDAczGaDZp0x amUNvKzVybykoVk5S9hl1y7rObbV1OCwoXJ9LYsNg7ozj/VDPoSqHs= X-Received: by 2002:a17:906:31da:b0:aa6:691f:20a9 with SMTP id a640c23a62f3a-aac078bfe69mr39233966b.4.1734545713494; Wed, 18 Dec 2024 10:15:13 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aabc71ef8fbsm338376766b.165.2024.12.18.10.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 10:15:12 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CF6495FC8A; Wed, 18 Dec 2024 18:15:11 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Leif Lindholm , Leif Lindholm , Marcin Juszkiewicz , Peter Maydell , Radoslaw Biernacki , qemu-arm@nongnu.org, =?utf-8?q?Alex_?= =?utf-8?q?Benn=C3=A9e?= , qemu-stable@nongnu.org Subject: [PATCH v2 4/5] hw/arm: enable secure EL2 timers for virt machine Date: Wed, 18 Dec 2024 18:15:10 +0000 Message-Id: <20241218181511.3575613-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241218181511.3575613-1-alex.bennee@linaro.org> References: <20241218181511.3575613-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x630.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 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 Signed-off-by: Alex Bennée Cc: qemu-stable@nongnu.org --- hw/arm/virt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 333eaf67ea..5e3589dc6a 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -873,6 +873,8 @@ static void create_gic(VirtMachineState *vms, MemoryRegion *mem) [GTIMER_HYP] = ARCH_TIMER_NS_EL2_IRQ, [GTIMER_SEC] = ARCH_TIMER_S_EL1_IRQ, [GTIMER_HYPVIRT] = ARCH_TIMER_NS_EL2_VIRT_IRQ, + [GTIMER_SEC_PEL2] = ARCH_TIMER_S_EL2_IRQ, + [GTIMER_SEC_VEL2] = ARCH_TIMER_S_EL2_VIRT_IRQ, }; for (unsigned irq = 0; irq < ARRAY_SIZE(timer_irq); irq++) {