Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4247321pxb; Tue, 25 Jan 2022 06:37:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFsZQqc2ftDV9/BCpKJpJ1snCAGHMkxh11KQFCEGmlUbtjtAO/XEidJioJjMWuxKwoterh X-Received: by 2002:a17:906:1cdb:: with SMTP id i27mr16910881ejh.663.1643121465380; Tue, 25 Jan 2022 06:37:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643121465; cv=none; d=google.com; s=arc-20160816; b=jIdvp1UlO8eFCj8AK4KjYskhj4P4+PaoL48dM0pLjAKOSyGx7yXjKsFYhm36bc5Q/6 sfHAIJCuaMw0++q1S2agkoP14uWxqD+zSvV3KJfQ9n/JttiSVA2ykvvzNx4sKGGAGmaL vaVs7pXXDtj8IlEYyqv8XkV/JR08PNWAgzJnf8iprMs8l43RzyYYhZHbyAyRQBB7CtSp r3IWLo4azfICy7o36G77HtgFYz9CGUqy4qyRs6KJMFIhKf+zrAUg88Zzmy/agqr96D/l Nc0yPSZE9/aZxJcjNVIn+T+KExnZL8y7sHINwSNFE3T4IOAMsHptQolxWuZOjlIbT9Tb nYVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=scA+WO/7zy1xEMVYISep/dAL7wm6VBA9xpopPadR530=; b=MEIlBsK/0lKAySB7+z18oTWqLdky+QtxuR4jG44eazxd15cUBVSrtKlEPfMyj8F6sd VJZF1prXScGn8ASBVbSufGQ8qpuFoC41sHX6gHeaVm52BPz9l31+KWhsMRoZGw/7XM+/ b26C+aryMG5jYssqdbsdxEfJ07O+HNkJmUACRwSwjZ6rNMxyQK7wRzbUctdLdbPCUKNH iAJW7yYWNhGoLFsN2ogv/mu2TB16TqRUuiq7bMC4y/j+E51/NLPXkN/jaMiDAZ1ptaS+ ZrNF5KQLoqU6AddJ4z7qAC1y7GSCZSNGyN4tKsuDY3w4dylSWw7mjWLvGRuXianNY0uC DqXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mZN8F9BJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si4210426ejk.567.2022.01.25.06.37.19; Tue, 25 Jan 2022 06:37:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mZN8F9BJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239851AbiAYKEm (ORCPT + 99 others); Tue, 25 Jan 2022 05:04:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238496AbiAYJ7h (ORCPT ); Tue, 25 Jan 2022 04:59:37 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E42E3C061744; Tue, 25 Jan 2022 01:59:34 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id a8so13907222pfa.6; Tue, 25 Jan 2022 01:59:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=scA+WO/7zy1xEMVYISep/dAL7wm6VBA9xpopPadR530=; b=mZN8F9BJMrFhJhSJVwScLdFEt8dhtp6iOh0kBzJye9ur29QN3+jVxB+5+UJsqojwht jJeNXxT4C74bxDAFgfh2VQcC4RlzsYizLG8gtXFzRa1op4dp3fJxltsvd2tTboN2IOxk L3tIBILIRKwjGUF1Os9oi59SRVOHCjE5wrKMfqBq8SrrKF9jMO4K7id3YOcPaF6I44fB TDeHnSHFBB0Cc1kBIfAD7czYkh0Qs6wqq3uPTsvgpn0JoweE+OyHMo5jd7e0DR90wTFu ZzRnS67P/X3i0GRjFPld2Qo7UVzYETUomV8TTrr56WEziUR6u5mBLsxl2nIuBjUk5XLa xLHg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=scA+WO/7zy1xEMVYISep/dAL7wm6VBA9xpopPadR530=; b=cPWLXZlbluYqEVf3FMddr78LTuzDEzmSQxVrwJ6Zmxarhtj34j7fKCel8blhh0KrRC qkoPilOXohjy1AgI7MNdrCvJUOFKwDuEJmxoYKxhZc3fbzIer56v0mZX8f0dV+FH+fgx j3lMQetddXU6JXnVlHMY6JhEd4OJ1QKmWuvB+BuawzZQWxESj5nFpyX3wP0uHkwwbaRy NWxTmsb4ca3Nxr0swmQqaNeshYKtxlGmxkC5aS31r6Gi4uyfGRpfpfH+paVFYbCLjJ64 xVDiNtu3P7toqDE7eYh8bG20j2mivGtbSzorjLxWTQpaYtqV979yfVDph2DC+gAw34c/ Bnlw== X-Gm-Message-State: AOAM532WF6ZvDadgp/4vzR5zlPEPx6mcZDFw5zI2ije98ympgLgZRFS2 RqCJ/WLXNbWB+UFCj8uiJZ0= X-Received: by 2002:a63:7019:: with SMTP id l25mr2991454pgc.321.1643104774522; Tue, 25 Jan 2022 01:59:34 -0800 (PST) Received: from CLOUDLIANG-MB0.tencent.com ([103.7.29.32]) by smtp.gmail.com with ESMTPSA id mq3sm201606pjb.4.2022.01.25.01.59.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jan 2022 01:59:34 -0800 (PST) From: Jinrong Liang X-Google-Original-From: Jinrong Liang To: Paolo Bonzini Cc: Xianting Tian , Jim Mattson , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/19] KVM: x86/svm: Remove unused "vcpu" of nested_svm_check_tlb_ctl() Date: Tue, 25 Jan 2022 17:58:57 +0800 Message-Id: <20220125095909.38122-8-cloudliang@tencent.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20220125095909.38122-1-cloudliang@tencent.com> References: <20220125095909.38122-1-cloudliang@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jinrong Liang The "struct kvm_vcpu *vcpu" parameter of nested_svm_check_tlb_ctl() is not used, so remove it. No functional change intended. Signed-off-by: Jinrong Liang --- arch/x86/kvm/svm/nested.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index cf206855ebf0..5a1a2678a2b1 100644 --- a/arch/x86/kvm/svm/nested.c +++ b/arch/x86/kvm/svm/nested.c @@ -209,7 +209,7 @@ static bool nested_svm_check_bitmap_pa(struct kvm_vcpu *vcpu, u64 pa, u32 size) kvm_vcpu_is_legal_gpa(vcpu, addr + size - 1); } -static bool nested_svm_check_tlb_ctl(struct kvm_vcpu *vcpu, u8 tlb_ctl) +static bool nested_svm_check_tlb_ctl(u8 tlb_ctl) { /* Nested FLUSHBYASID is not supported yet. */ switch(tlb_ctl) { @@ -240,7 +240,7 @@ static bool __nested_vmcb_check_controls(struct kvm_vcpu *vcpu, IOPM_SIZE))) return false; - if (CC(!nested_svm_check_tlb_ctl(vcpu, control->tlb_ctl))) + if (CC(!nested_svm_check_tlb_ctl(control->tlb_ctl))) return false; return true; -- 2.33.1