From patchwork Mon Jan 22 21:12:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Romero X-Patchwork-Id: 764668 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp1310523wrx; Mon, 22 Jan 2024 13:13:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IE024k+dTlQNXwJegcox1NT0+Spq8ZWXlz0nKSCvCxyf585cqjw7VeANItLTVPgObrpsu9K X-Received: by 2002:a05:620a:101c:b0:783:8fce:cc6e with SMTP id z28-20020a05620a101c00b007838fcecc6emr5930005qkj.1.1705957997388; Mon, 22 Jan 2024 13:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705957997; cv=none; d=google.com; s=arc-20160816; b=z5HLP5llYBGGTV857mDZC+uso4rB09hlkg97gSw9vGHR6J3S/QZJsNeokKfa+ZtSro f9kjcWIh2Z9GsHPNY2CebufcQnaRf6Wx+T+oJKvaYFdBJQ+yAn8PZ7vhO5HyWbK9M9bA kApJ1sTRRxdVQ2wsUdcfqzJswWeg4DZBGs5ITlKBwzbcVWEsEwcu+KtQC17IhpN7xd7S vdoMXg9JDtH6QngAJmTbCqqHThgSbWFr8dJpy2x54zwcAtu8BUQA0AnjNtTYJzs7eaC0 qRMrSqrqpCa40dxRH3eMaYQjZaW33xTnQRMk3eWchOiU6XaQ+DL5f2NxhY5SigBKuupz Z7sw== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=BZA4U8FeZ42t0bbhSQ7qFVMrjXIpcqIQEt110wRVJmg=; fh=YmZuTipZhONWNvO3fm64snAodX2S9zBXNIdwKxRfrBw=; b=pTjmFiuAMrBnG8dYS0Yca7rRYgwmCe0uiL0gA8exfMU7mWCzdUOgHgO+Aq0/URbzZ8 2QiadqM6Y0cxDLp1Ud4UQ6YlYyN+VNJFAXLa/rdFjhv3C5zHLdGc2u+64ex/R0r0VA9G iKsrsyeFP+HHG3AmWn2FgANqMcNhSa01I9ndHZ2zRsRYH4O5a/szqHv+sRU2BNd4FO5u c7rBQnLXmWxgY0AgAu6k2Bmbjxj7BeNYpkY5xDlBnlTJiESGIIILa7fqTTqo2CvN63e+ k/UuzWIEOS9H7sn4+1zjXxRCa6TyjU6r9Qw0qHCQjJsytYUhI8Po28OAGs6zpPdlLbnt YRJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dc/QndNe"; 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 m6-20020a05620a214600b0078332a7426fsi6280977qkm.460.2024.01.22.13.13.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jan 2024 13:13:17 -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="dc/QndNe"; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rS1bH-0005Ca-OZ; Mon, 22 Jan 2024 16:12:59 -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 1rS1b5-00054W-KE for qemu-devel@nongnu.org; Mon, 22 Jan 2024 16:12:49 -0500 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rS1b2-0002RH-HH for qemu-devel@nongnu.org; Mon, 22 Jan 2024 16:12:47 -0500 Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-5cf765355ecso1708612a12.0 for ; Mon, 22 Jan 2024 13:12:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705957962; x=1706562762; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BZA4U8FeZ42t0bbhSQ7qFVMrjXIpcqIQEt110wRVJmg=; b=dc/QndNeBHCq926xkoNBJwa8rR9o0j/lWibSHN4xYANfkiD7tL4X6XGoOrz+Ey6yil tXVOHGmtOnnb+/uzZPglE3foW3DCRd79kA9Ue+iG8mJ8CEOHXMNBIuDpjTuD4fQeaBdk tIPR63kczwF6Buu6pwW+M0HZsHmTViiEBQ1eT9mgg9WjMZDk48RkB3aWhsUNJNbOnCQT NAfcIpMnA0OZ60ni1XT28qv3dwg/HAFclWlPz4iPmhO8d45VFSq1RPMIZioTmOqkoJyT izh51gLltS/OiU89RuS/6D9G7OL3gIyRU+CB6Q2Tg0ABftzSsb+HfflXDQjJ/sArTrYS Jvcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705957962; x=1706562762; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BZA4U8FeZ42t0bbhSQ7qFVMrjXIpcqIQEt110wRVJmg=; b=IFvEQOkcEbEYuBdIcDDpUfzl9DWAzUopBdrTsFIzUnFFY2Bt3JCtNb8V84E7nlo1nN a2URUkcNaHk+UCKEjfrTXBE9yiWSEkVyq4MyT2uocRHADdZ3NDgDZ5NnH8JAqtb/rOPJ J/yonXc/jQC6S50jY8M3oOIRFijPvFr1Ve2379FVUzwmbelxF6phiLtIScTFIal4oiny x4yVJ08u/raJHiZZzqnHI37KwQRfm00TlKkXEUt2dNm6x2Q2Ddx4ty2RXjnFemMDbXTx /145ZNbDClZ0ENnVRdqHZy7+RoYJoPP+NnRU2ylcw9sUzW0ZnpFlhQNVaXarbudbncJt zuNg== X-Gm-Message-State: AOJu0YwqIf3XyI2DdTkdl6IMKgU8sm/yve1oQMtxnPndFBxKa1qWS2WQ hU9Uf0aE5J7hykSoXr6PsjHyo47pMLlLWAqUTMQK6MPXFKOYGOBzPv8Yel36FRI= X-Received: by 2002:a17:90a:2f24:b0:28b:3335:1489 with SMTP id s33-20020a17090a2f2400b0028b33351489mr1866163pjd.99.1705957961972; Mon, 22 Jan 2024 13:12:41 -0800 (PST) Received: from amd.. ([2804:7f0:b401:e1f2:3e7c:3fff:fe7a:e83b]) by smtp.gmail.com with ESMTPSA id y17-20020a170903011100b001d71cbf200esm5972636plc.260.2024.01.22.13.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:12:41 -0800 (PST) From: Gustavo Romero To: qemu-trivial@nongnu.org, peter.maydell@linaro.org Cc: qemu-devel@nongnu.org, philmd@linaro.org, alex.bennee@linaro.org, richard.henderson@linaro.org, gustavo.romero@linaro.org Subject: [PATCH v2] docs/system/arm/virt.rst: Add note on CPU features off by default Date: Mon, 22 Jan 2024 21:12:15 +0000 Message-Id: <20240122211215.95073-1-gustavo.romero@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=gustavo.romero@linaro.org; helo=mail-pg1-x536.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-bounces+patch=linaro.org@nongnu.org Add a note on CPU features that are off by default in `virt` machines. Some CPU features will remain off even if a CPU-capable CPU (e.g., `-cpu max`) is selected because they require support in both the CPU itself and in the wider system. Therefore, the user, besides selecting a CPU that supports such features, must also turn on the feature using a machine option. Signed-off-by: Gustavo Romero --- docs/system/arm/virt.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/system/arm/virt.rst b/docs/system/arm/virt.rst index c245c52b7a..1888e31956 100644 --- a/docs/system/arm/virt.rst +++ b/docs/system/arm/virt.rst @@ -69,6 +69,19 @@ Supported guest CPU types: Note that the default is ``cortex-a15``, so for an AArch64 guest you must specify a CPU type. +Also, please note that passing ``max`` CPU (i.e. ``-cpu max``) won't +enable all the CPU features for a given ``virt`` machine. Where a CPU +architectural feature requires support in both the CPU itself and in the +wider system (e.g. the MTE feature), it may not be enabled by default, +but instead requires a machine option to enable it. + +For example, MTE support must be enabled with ``-machine virt,mte=on``, +as well as by selecting an MTE-capable CPU (e.g., ``max``) with the +``-cpu`` option. + +See the machine-specific options below or check them for a given machine +passing ``help``, like: ``-machine virt-9.0,help``. + Graphics output is available, but unlike the x86 PC machine types there is no default display device enabled: you should select one from the Display devices section of "-device help". The recommended option