From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 554E0C433F5 for ; Fri, 4 Feb 2022 16:59:25 +0000 (UTC) Received: from localhost ([::1]:35366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG1vg-0005ab-1j for qemu-devel@archiver.kernel.org; Fri, 04 Feb 2022 11:59:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG1rq-0002ck-Uj for qemu-devel@nongnu.org; Fri, 04 Feb 2022 11:55:27 -0500 Received: from [2a00:1450:4864:20::436] (port=43683 helo=mail-wr1-x436.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG1rk-0003BA-1V for qemu-devel@nongnu.org; Fri, 04 Feb 2022 11:55:22 -0500 Received: by mail-wr1-x436.google.com with SMTP id r19so1684764wrg.10 for ; Fri, 04 Feb 2022 08:55:09 -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=C8FZdd6GqFScZ13HoeD5DiDrLHtRUZkbguZU++0Zp44=; b=C6m9bdzASjuFZ92VDo3tyzJCWsO7Uu4NbaXiiVyv+js6YX2KcWBkUMVKpcdE3wZWfp 9TLJWhEv6PxxfJdTnF7YMYn9R8jxplIgfh8MVi/0tD8/Fba4SyI+OsHz4f7IzuKmqO0Q e8rI69GDyu69uIlvQJDkgO8UXC8Wou0VVk5s2nUQJph6c67Qr/JyuUamTCN/Ze3PSi3a Lz72MeNk3nokFu4yfxxMGHM2KmNgQNH/ZUlg2dG3NbHjC0OQd7sFNbFbCslbTYEv6I+m Vw2D9G1TIvaqPw/XYWocfMX7flhwDQLzCwfZgTnEC5xjYoAqDIbvad+WKslaWriE2ceH dgFw== 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:mime-version :content-transfer-encoding; bh=C8FZdd6GqFScZ13HoeD5DiDrLHtRUZkbguZU++0Zp44=; b=gjRKd4sbxaPOrW8mHBRDIXsT8QSkRXoffPSftPm9cJI6JRWrq6zn6RdCAJRcQtQeDw CFAtsxmb7D/m/P4y4L67khDklZagppV+kyy4xduYpBJ570UYL2aJRkASHQyYFpf9/xny mofPMwYMuRAbQM6C0DE66qGg17ht2jasaX1VNbihhQGJiA/Z1KftIh6R2GkrcdiznD85 MD639k1J7Lxs24g3vBV3x6BktDXiz4kNfS81nrZVhZkEWbcjZ8brIkrR1lGKojFX8FT+ +Ji7jZ13t0Cw6hhuTCLej8A2UMVCZ+o6yrae/vzyYq+axQZPDBCwmrvJ8JI3WsDejrKT +wvw== X-Gm-Message-State: AOAM533bSIP9Dvo117BxOKlrOxpFMjm6349UxR3yIlIFahCQeZjd5l6H VDLQmwfAtsv6SZE5FABKlXUNYQ== X-Google-Smtp-Source: ABdhPJw3A48ajzD953ryhHwoIz/kIPopEKmD8wtcTyKA13TGof/QV3Q/+YuzInHWeRksl41lqD5dyw== X-Received: by 2002:a5d:6048:: with SMTP id j8mr3154871wrt.244.1643993708301; Fri, 04 Feb 2022 08:55:08 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id f12sm2486254wrs.1.2022.02.04.08.55.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 08:55:07 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 0/6] target/arm: -cpu host/max KVM and HVF fixes Date: Fri, 4 Feb 2022 16:55:00 +0000 Message-Id: <20220204165506.2846058-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::436 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: Andrew Jones , Alexander Graf Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This patchset fixes various minor bugs in KVM and HVF -cpu host and -cpu max: (1) KVM -cpu max was incorrectly adding a 'sve-max-vq' property that wouldn't work and which doesn't exist in KVM -cpu host (2) HVF -cpu max was using all the TCG ID fields and thus promising the guest more than the host CPU can actually do (3) HVF -cpu host wasn't setting up the PAuth properties, so it defaulted to not telling the guest about PAuth support This series fixes (1) by moving the '-cpu host' code to cpu64.c since it's aarch64-specific anyway, which lets us reuse it from the '-cpu max' init function. It fixes (2) and (3) mostly by making HVF use the same bits of code that KVM does for -cpu max and PAuth. thanks -- PMM Peter Maydell (6): target/arm: Move '-cpu host' code to cpu64.c target/arm: Use aarch64_cpu_register() for 'host' CPU type target/arm: Make KVM -cpu max exactly like -cpu host target/arm: Unindent unnecessary else-clause target/arm: Fix '-cpu max' for HVF target/arm: Support PAuth extension for hvf target/arm/cpu.c | 30 ----- target/arm/cpu64.c | 330 +++++++++++++++++++++++++-------------------- 2 files changed, 181 insertions(+), 179 deletions(-) -- 2.25.1