From patchwork Tue Feb 27 11:34:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 10244899 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 67AED60208 for ; Tue, 27 Feb 2018 11:36:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BE9B28843 for ; Tue, 27 Feb 2018 11:36:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 508AA28846; Tue, 27 Feb 2018 11:36:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F1F328845 for ; Tue, 27 Feb 2018 11:36:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753162AbeB0LgJ (ORCPT ); Tue, 27 Feb 2018 06:36:09 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51040 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932134AbeB0LfB (ORCPT ); Tue, 27 Feb 2018 06:35:01 -0500 Received: by mail-wm0-f66.google.com with SMTP id w128so17469906wmw.0 for ; Tue, 27 Feb 2018 03:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=christofferdall-dk.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=JIR6oVn6mbqZpuBXVlePe8GehxFDWm6bNq9CqgNxUlU=; b=kuDQVqiOUaD9UEzADbTdnMtavPFPybGeOMn+2GGp/SaPsrNKZ1CdfaO5JDZHqyNVNk HTFDYZBiWJrv5/ixrOukBJIUBmKRR2/5FlY/R+nwVkKK2sW5dB450ukEoc5+RQe97Lzc V+136fSWVmQ5z+wrw4xgpigNfZiImAyDFCDibDdq7mov45UN/vgC9SugNnaOuNef8dNu qDyKoum6Ek9RNZM2K21aKJJzGCJruaXV8Onh9skp83YijcWMBzY5e3boSyk5ir+ka+Xx AfKBfaVLWEUuFjiVfh6owNTxV/rfgSrerJ/sZo68GlHodQw44CjTnxzf1Vh2dcOMveYC pb9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=JIR6oVn6mbqZpuBXVlePe8GehxFDWm6bNq9CqgNxUlU=; b=f0Rd9RlqrzuJQ+ADNnI4D+esBnX/mCaGGJ9zM+ynzvCVvYPP0YMUEjncVabhNWyVwu 6qbSb8hN3pxtj5nOAUS4jqmKGMNVJRczaU3sSrMnXhM5KpIfJj3uq5mYcu5HeagY5LE4 dEbRFn1Q64mAloUGOsCHUWVUXfCqj14l6yHXypo/WaP9mPptHxaysJ0L2aNGCwhYfOdF cJYmiT0lJvI7T5qjFUprvaY+Ed9FLbyGsiGDoKd6r4QBGUDOklj+yTl+r56asmGre2tY fGeb06r05YQaMRYTmqVcNMfyUYpYodRYG7uc8CuG+zjUUKlEfyJdiurot/Xuxj4tAUUo tqdQ== X-Gm-Message-State: APf1xPBfDgxKytttWvfChZuQJquMclyA0mVSpz+dAPF+UKliVDthtbxx eEMZnpRYQksWwb9xus9PltpKjA== X-Google-Smtp-Source: AH8x22501z+0XI7Rj7W5v0mh+tSNM3Sv8sUHcz2DWyefnIF+J116kmJnc3c3FpCyjYaO5NHbQj09CQ== X-Received: by 10.80.151.105 with SMTP id d38mr18497288edb.79.1519731300235; Tue, 27 Feb 2018 03:35:00 -0800 (PST) Received: from localhost.localdomain (x50d2404e.cust.hiper.dk. [80.210.64.78]) by smtp.gmail.com with ESMTPSA id m1sm9176786ede.39.2018.02.27.03.34.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 03:34:59 -0800 (PST) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Cc: kvm@vger.kernel.org, Marc Zyngier , Andrew Jones , Shih-Wei Li , Dave Martin , Julien Grall , Tomasz Nowicki , Yury Norov Subject: [PATCH v5 20/40] KVM: arm/arm64: Remove leftover comment from kvm_vcpu_run_vhe Date: Tue, 27 Feb 2018 12:34:09 +0100 Message-Id: <20180227113429.637-21-cdall@kernel.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180227113429.637-1-cdall@kernel.org> References: <20180227113429.637-1-cdall@kernel.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Christoffer Dall The comment only applied to SPE on non-VHE systems, so we simply remove it. Suggested-by: Andrew Jones Acked-by: Marc Zyngier Reviewed-by: Andrew Jones Signed-off-by: Christoffer Dall --- arch/arm64/kvm/hyp/switch.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm64/kvm/hyp/switch.c b/arch/arm64/kvm/hyp/switch.c index d60d3a018882..fd845dda007a 100644 --- a/arch/arm64/kvm/hyp/switch.c +++ b/arch/arm64/kvm/hyp/switch.c @@ -410,10 +410,6 @@ int kvm_vcpu_run_vhe(struct kvm_vcpu *vcpu) __fpsimd_restore_state(&host_ctxt->gp_regs.fp_regs); } - /* - * This must come after restoring the host sysregs, since a non-VHE - * system may enable SPE here and make use of the TTBRs. - */ __debug_switch_to_host(vcpu); return exit_code;