From nobody Sat Nov 15 15:28:31 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1750425254; cv=none; d=zohomail.com; s=zohoarc; b=nL4lBOtroB9BIPZBZez5yZVb6KOIp+de65pA4oUnghn3E7gUrddxM7Q/CwYv7R04I/UhBTZvO8xGdGC+04nm2Ub6iYEtCl6JUTnjuGcU7qWJaVGuBX82NnzBeaPZqIUektSfMGEBq+X2I0dXUVz7OSvB4KIqn7CPrvwlipQ/5QQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1750425254; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jKb7+45W8wr+DNWypSxWBKVEj0bAIAzVgg/1Er2vy8s=; b=Yhb7l+NHUk2CMubchch1sSDD13w0PdxqvcjId/e6Bfha59vvGMxrxCCNjg8hohi3GWB2SnbicJbm8J++Qm0xGuF0ap3aRLuQ6YKZvdp/KNFdMtYvjypnC96Akl2Y2FAnghjhdTTQuXwSOpUwNe57k0AXWWZaJkmLk3ATOavcpdQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1750425254912940.6563248452901; Fri, 20 Jun 2025 06:14:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uSbUU-0005Ee-6P; Fri, 20 Jun 2025 09:09:10 -0400 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 1uSbUR-0005Bq-JW for qemu-devel@nongnu.org; Fri, 20 Jun 2025 09:09:07 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uSbUQ-0004sg-0Z for qemu-devel@nongnu.org; Fri, 20 Jun 2025 09:09:07 -0400 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3a507e88b0aso1550102f8f.1 for ; Fri, 20 Jun 2025 06:09:05 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a6d0f1ac5asm2117585f8f.33.2025.06.20.06.09.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 20 Jun 2025 06:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1750424944; x=1751029744; 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=jKb7+45W8wr+DNWypSxWBKVEj0bAIAzVgg/1Er2vy8s=; b=CiA5T6w/zk81PZR+KrkaOzyj3uc6dHoz7mTdlTsdMa6P0yW0IbevzOsFkcTeDye9LY E7IL2URf5/M4w80UeGuiIBz9OYgu6USE8AUDSPDcUANDY7AOoF/1wSDdBv27rd41zaoQ PFx/aqhwKPU/NVEftqPUJ70kknpX307bCUsAG7neewFvMkY2VoJs6E+maxUqZc94xSPx W1QACjwvfjuxy1QE6gOEjjeAAUMJQ50H0brRy0k6kYTSbohfwGRUjonbi8mdBOvI+4la 75tbWmCsKTuxBfsYHddO8BkDMtr/c1ouw/bqaZ2om6lvN8FSExHErSepArPQa4oA+eDe iEuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750424944; x=1751029744; 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=jKb7+45W8wr+DNWypSxWBKVEj0bAIAzVgg/1Er2vy8s=; b=avhbD4xbT13XQlsN6lOXMmoTHj3XrkkwPtWZB9w5tE6rkSjP2idQO65StADMfjunpI cWfHncH0Qqh46gjWsXKyhWgEnHgRDlLn706EGkItMtwkNj7txN2SVXhrkEviJqtcQ1vJ JSB9EX8Do0yoru6T/Anspys7Tpv00ANl0VXB5FNaDGavQBKEr+MGM9H7IJ0NWZbtQMkd GMhSa+TYp6DwgirhWnYEG1D41/YuOR3hl0NKZy3nEdbPBTifDylx2OW5Kitt3aT/pfY2 g4L+9HaoC4ORLJbceTRhvd/ggbkpDG3TTfZSful3lreNbPFxZKKGKcGArpJow5Yr9u3C kxdw== X-Gm-Message-State: AOJu0Yy0IUEPov3lKT1i3XSQulq6QuqxNzI16RBjLCTgjxYV3rypc5T2 WORApC0WrUz3mqSoSHCBprwxE+9AXJa2yzH2iU5CeMPikHr18oMrV9RB7rtWlTSOIcNStVIObsy Kd2f8zsQ= X-Gm-Gg: ASbGnctOSebsCjTI4+EcQGCo/FymJn/5UVmJu0C/r/vxWa6XUadBHCSmlj326v/YLfs /oHjvVATq6huwYLg5x4AHlaL1p8duq8tqwnVm23y/NofBMnEbLZAgRDA2bNNTaAqbmZP04TGhTj tsk2PUjqLunOOu6sT9wQCnDKE4/VXYmLrPiCfK9QRhAdp/x3uQkGhGkJ9bmu21+Lm2pRmC8YdWu s2dTCm/ysWjscGanyZw8jUiBlOdOatIcrLatxed/uM3QCBvXjrAVn7aat/mCjeoIaClZV+/n0f4 c7A3BR87srISbpmfeBSBBV8Yim07v6qpl/vCREHU7zXpS7DCW2d2gz6AVrYcd9z35hJCVBLKM0H 8/aEIZG+B4x1p0+/qIW4ozb9tcoFSBo45Chea X-Google-Smtp-Source: AGHT+IGU/PISgWAUAam3cXO827+5Gf2StC7Q8MM7jO79fbKmCjBYcioqe0LeMR+lxX2cddMN2HDweA== X-Received: by 2002:a05:6000:4109:b0:3a4:eb7a:2cda with SMTP id ffacd0b85a97d-3a6d13071ddmr2045022f8f.30.1750424944090; Fri, 20 Jun 2025 06:09:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Leif Lindholm , Richard Henderson , Radoslaw Biernacki , Alexander Graf , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Phil Dennis-Jordan , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Bernhard Beschow , Cleber Rosa , Peter Maydell , Cameron Esfahani , kvm@vger.kernel.org, qemu-arm@nongnu.org, Eric Auger , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Thomas Huth , Roman Bolshakov , John Snow Subject: [PATCH v2 20/26] hw/arm/virt: Only require TCG || QTest to use virtualization extension Date: Fri, 20 Jun 2025 15:07:03 +0200 Message-ID: <20250620130709.31073-21-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250620130709.31073-1-philmd@linaro.org> References: <20250620130709.31073-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=philmd@linaro.org; helo=mail-wr1-x434.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1750425256332116600 We can not start in EL2 / EL3 with anything but TCG (or QTest); whether KVM or HVF are used is not relevant. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Alex Benn=C3=A9e --- hw/arm/virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index b49d8579161..a9099570faa 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -2210,7 +2210,7 @@ static void machvirt_init(MachineState *machine) exit(1); } =20 - if (vms->virt && (kvm_enabled() || hvf_enabled())) { + if (vms->virt && !tcg_enabled() && !qtest_enabled()) { error_report("mach-virt: %s does not support providing " "Virtualization extensions to the guest CPU", current_accel_name()); --=20 2.49.0