From nobody Tue Nov 18 06:06:13 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=1608055155; cv=none; d=zohomail.com; s=zohoarc; b=c5op8i23rRzITGKRAfITVzapujCXDY5ZmXlMtgKdxzLZ8c3cPGHMlSzVYmnlEn+f/Uunb7IyduylKD08lbmIlQDAjnF1tufmtAMDEKdW8a/HPhlllphFr3a3Ly3UGaNM8iGUULnqJ+SS3WL6DDIwLQsJtdaHKzzafoRa0nis4Sg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608055155; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=6nKNZyQ5mwOCGiSTv8PcByBpUnp/OJYzR5xUJtXpQ+Q=; b=YzoJNmPGZIXkMvtGqfyx0hB+izSiTfUqbUAYjnQU+KLAAnzQNJ/AglWXjZApowPFS+UOxLdx8B4GOGf3pHi/mitZw4aYOs+vNRtK8JdgAmtyfsCEzVfI0k9iBYytWqLuJxGH18ONJRFlzC7IdGxtq6Ym6gQDmovXeq7JgTmC/SE= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1608055155874896.245082623888; Tue, 15 Dec 2020 09:59:15 -0800 (PST) Received: from localhost ([::1]:34034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpBcS-0003BT-Oq for importer@patchew.org; Tue, 15 Dec 2020 09:48:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpBWz-0005xe-5l for qemu-devel@nongnu.org; Tue, 15 Dec 2020 09:42:25 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:34484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpBWw-0000I0-2s for qemu-devel@nongnu.org; Tue, 15 Dec 2020 09:42:24 -0500 Received: by mail-wr1-x443.google.com with SMTP id q18so12564674wrn.1 for ; Tue, 15 Dec 2020 06:42:18 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id z22sm35049810wml.1.2020.12.15.06.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 06:42:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6nKNZyQ5mwOCGiSTv8PcByBpUnp/OJYzR5xUJtXpQ+Q=; b=EHhhIuoqwTmX2v4/Wcxq4ENCTTvFib33OgMXAeM9aC7VW24v1V/6akoay/aBHP/Zun /VXmYBuzoJ4xbi00jHUBQHge6xWKz/3joH+gHVG/rZRtEk9Ij1iIQKQk0JlY2RKK1TFY gsVBNv2PqZMXklycL8Z61JQn/WEhEcQEZU8dsWunMSFLlVu/IBLVJwy8y6/xaK6ycKHT 09szXZ7hc86brQBuIsi8IXlQZv1jxrx0lurqtkA29AgGsvdF+RjeqoF8zSfm8ojevDeP F6vNVBcDLUpzlvOKV/Yu1fASY9HOHsecMOnE2p7lqZd02hiqmbRuPEeiRjVy89hmimgx V7BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6nKNZyQ5mwOCGiSTv8PcByBpUnp/OJYzR5xUJtXpQ+Q=; b=Sftf1ZmYHYNCyZbCIu/9hHBBIS7OHASvtoJedVTxYQc147Zmp30r02KQp+eW8hI5m/ xoBL96qnkQR1yuoYpfHXFYeckJBIEUqXb/XkbaLwal1sULhHiKvpRUpUYi0+iTG4Jj29 GuDagHZmuaphWkj+15yp6K3doOztdIxrYukEz6FGVJ0smP7LfjfDM5h8pPo/KpCoJFg+ syYru/s2G8P4EDKTDwUBvNsk2mdSuqpl7MkcAr2Pwc6SOOIm1sIbbpRwnIdO4y5MSLCd CYI7pnSh7MProKPQDsUyOETmGo4vL6wXqPH0QOezOnuDny8RVUWSGd+7+s5DdhafL/p1 j0FA== X-Gm-Message-State: AOAM530t2O+c+jUNGEfHU81dw6je9zFLwLezwpaKm7zYAOQOTSvDe1+H pAbUt7ViOGR+CxqXCzwU/t8yGA== X-Google-Smtp-Source: ABdhPJy4RiLcOTHA8q/X5VF+SQPdadxRCy/LfHQQZY4ouqZfWQFzzb44W71hyUz6G6EPOV253ufCyQ== X-Received: by 2002:adf:dc8b:: with SMTP id r11mr34830700wrj.131.1608043337083; Tue, 15 Dec 2020 06:42:17 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH] hw/arm/highbank: Drop dead KVM support code Date: Tue, 15 Dec 2020 14:42:15 +0000 Message-Id: <20201215144215.28482-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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::443; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x443.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Support for running KVM on 32-bit Arm hosts was removed in commit 82bf7ae84ce739e. You can still run a 32-bit guest on a 64-bit Arm host CPU, but because Arm KVM requires the host and guest CPU types to match, it is not possible to run a guest that requires a Cortex-A9 or Cortex-A15 CPU there. That means that the code in the highbank/midway board models to support KVM is no longer used, and we can delete it. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- hw/arm/highbank.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c index bf7b8f4c648..bf886268c57 100644 --- a/hw/arm/highbank.c +++ b/hw/arm/highbank.c @@ -26,7 +26,6 @@ #include "hw/arm/boot.h" #include "hw/loader.h" #include "net/net.h" -#include "sysemu/kvm.h" #include "sysemu/runstate.h" #include "sysemu/sysemu.h" #include "hw/boards.h" @@ -38,6 +37,7 @@ #include "hw/cpu/a15mpcore.h" #include "qemu/log.h" #include "qom/object.h" +#include "cpu.h" =20 #define SMP_BOOT_ADDR 0x100 #define SMP_BOOT_REG 0x40 @@ -396,15 +396,9 @@ static void calxeda_init(MachineState *machine, enum c= xmachines machine_id) highbank_binfo.loader_start =3D 0; highbank_binfo.write_secondary_boot =3D hb_write_secondary; highbank_binfo.secondary_cpu_reset_hook =3D hb_reset_secondary; - if (!kvm_enabled()) { - highbank_binfo.board_setup_addr =3D BOARD_SETUP_ADDR; - highbank_binfo.write_board_setup =3D hb_write_board_setup; - highbank_binfo.secure_board_setup =3D true; - } else { - warn_report("cannot load built-in Monitor support " - "if KVM is enabled. Some guests (such as Linux) " - "may not boot."); - } + highbank_binfo.board_setup_addr =3D BOARD_SETUP_ADDR; + highbank_binfo.write_board_setup =3D hb_write_board_setup; + highbank_binfo.secure_board_setup =3D true; =20 arm_load_kernel(ARM_CPU(first_cpu), machine, &highbank_binfo); } --=20 2.20.1