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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D5E9C433EF for ; Mon, 25 Oct 2021 16:33:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4016A60F46 for ; Mon, 25 Oct 2021 16:33:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4016A60F46 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=a9kbCH+wdc55JYqZGw/k6A3zyZz2yOLZZoRu+D9Y+Y8=; b=LOg0F6a1QAqfFL r4wRZ7I6UdkM9zarnlEE08s2CPFCMO6uccJwtrYGJ0jU4tTz5gM6ftrhuCeOTmwwxUWqhwFvSpAFr MC30r+NTtXAtZ16YBgmC3PwxBr2330BBvJtA0B+7Vl0631exLBxmjB5ECFUH33UbioFZERT71DrbN PCFdbezuNppeVeyZ2eERt1nhoO3kHiLg96mmdm5ZFOfynLh7j6qLr2K2oRzevv/WMVwLyqikMAE8m X/mw3r9oRCYwXQGlnPuPQBe/JjgJFpm+XfMcR0iOW/By6YIdrGQ2bGexJm7Bad+Y19WlluYHJvQGk IBslQFGU2lYbTmnsUhPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mf2tr-00H3lG-1a; Mon, 25 Oct 2021 16:32:39 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mf2tn-00H3kR-TU for linux-arm-kernel@lists.infradead.org; Mon, 25 Oct 2021 16:32:37 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id F3F6960EB9; Mon, 25 Oct 2021 16:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635179555; bh=O8WFMgy0F5qq/mgu6iWds3x/8uxiyUke0g6QaRFhtqY=; h=From:To:Cc:Subject:Date:From; b=a4CS1HAF2Vf68K/xknC5SziHYuOYeF7ICJR6HPu2zeHoVqZNa2Sd6DfZz+dS06/5p Mee47EC0T+sW2SJJkVeISW4SmNTbw6n+3LI7qfmMIMUqvCPrPPXV1xINQmoL9hv6j7 +9hGpbSKsO1ZfdSEtj5GH7tHhvfnJbxU5TfH5TotqwFz2JhYvckcWw45mWSAmP/SyY bTjVmasIXuJpLSIjPK6IDJGW6q+YVpjajnKGZO/yMClY2Nv9SYBoqFKIc2utKpPnz/ Fk2K+rJHQ5uN2LDfDM4dV4WxZN0L8VQ4EV4y+JdUkDBxM2e3B/E0hnBCYilF6Z2xK7 p1wdlhmigGa9Q== From: Mark Brown To: Marc Zyngier Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, Mark Brown Subject: [PATCH] arm64/kvm: Fix bitrotted comment for SVE handling in handle_exit.c Date: Mon, 25 Oct 2021 17:32:32 +0100 Message-Id: <20211025163232.3502052-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1037; h=from:subject; bh=O8WFMgy0F5qq/mgu6iWds3x/8uxiyUke0g6QaRFhtqY=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhdtoajDC0i8/ujpBY4hVzfxYa5YXZZSkd5RlYfCcI V6zvs0uJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYXbaGgAKCRAk1otyXVSH0EAnB/ 9QRHR3zmGGyo0cKfRHBiJ5ZiiKfNeLmcF6e7Q57V9FxAm0H2v9FyvccLkH7bEqwuco2MNwH1keZGEu Nidxz++FxnKuNAie/EspK1uOYw3hRJ5pUVvTr7mrzslk48ilevlkHbsUFbDWgo+DkQwm074A4j4L40 gAyQDk9Eixcdlg8PNLpIZ0E+ByVSM3zpItuZhK106DZUhTqidNtEuvzxUm43WOh6OZ6WIdHr4QPU0Q zsQy0rTr4pYSgLUVF/3wg/lQoPM+Imh229bOOCY57OaZ8aQt1/BqZ1ZBL5n3pCQU5/prJweUj0W8t7 VGc6BbHKOU8tmoIuMuQyP7zdutIEDX X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211025_093236_000611_BFF90364 X-CRM114-Status: GOOD ( 12.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The comment on the SVE trap handler in handle_exit.c says that it is a placeholder until we support SVE in guests which we now do for both VHE and nVHE cases so we really shouldn't get here in any sort of standard case. Update the comment to be less immediately incorrect, the handling of such a situation is correct. Signed-off-by: Mark Brown --- arch/arm64/kvm/handle_exit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kvm/handle_exit.c b/arch/arm64/kvm/handle_exit.c index 275a27368a04..5abe0617f2af 100644 --- a/arch/arm64/kvm/handle_exit.c +++ b/arch/arm64/kvm/handle_exit.c @@ -140,9 +140,12 @@ static int kvm_handle_unknown_ec(struct kvm_vcpu *vcpu) return 1; } +/* + * Guest access to SVE registers should be routed to this handler only + * when the system doesn't support SVE. + */ static int handle_sve(struct kvm_vcpu *vcpu) { - /* Until SVE is supported for guests: */ kvm_inject_undefined(vcpu); return 1; } -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel