Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4249160pxb; Tue, 25 Jan 2022 06:40:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9XXXSfWUA6VnWihP3aIWCu+VDdxtk+FIOc5GBdZ2aEHDShYO28N7wsWTZd8A1aIPjdwC2 X-Received: by 2002:a17:907:2cc6:: with SMTP id hg6mr5622865ejc.729.1643121608004; Tue, 25 Jan 2022 06:40:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643121607; cv=none; d=google.com; s=arc-20160816; b=PO5l7SHtsx1nNXm3yLykCYsYvShpi3iq1gOesZPAr8EvS9B5hKCBOz2ltsEjWABAfO 2/pXaPznY77o1oqBvGw8RTDpEwCkkSnvLERYpix7WnVJ58grFI5ab+lj7KhjT2zvk2lk VGuqkJ3MKeiGKDSW8JqXtIAzPrWHL3vzwMrTMgBHqflNrdIxA/Y/aH7QiTQ+k50wXTLq 2eaT+cJT3WXFS7p3tRHwBXUOcmnu8tFXndk+EFaQuSwrSnwshM984Dis5kZnzt2IzJ7J 9vjgxAb9WMTBaX5v6s5ab/NmP2Tv5NZrkipOZ3eKxtOC86OF/SVrSz77gRUjZR/GJzuz pbmg== 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=gJXu3XDntG3sYuZsaAy93XgNQyjjQDdCF6KOBgCQ6T8=; b=FXIp093GTE3wMFlpmx4vrdzXltiZ2+B16QLgIm3s3Ycr2hj3ekJvctZ9BLAqGJiToZ +3gErCswNOF+Q77p23oenitwvcbrbVU7CleYrl6+GE0KqZ93MTJuBY2PNV1ZPi9Uq3Wm PUNnwW6VdZBd9XP2QjXeV8SRaRDXdJVzEEYA/k2CzO4TC4XR13OOsMauSxRFxkuy51s6 YSTdJ59XOnM52eqJOlxAI4kJ4Q1Lv9wKQMFGPrzqn5vDWR6gqlwaacmNQc8km0+sjeK9 5reNq+fERKYNUUJcacd+y550RXom2c/8ZplVyOplAW0E7zK94xxkPH/IabZqR2wK8OjD gd+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=l4Qf+2yF; 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 oz19si1509501ejc.707.2022.01.25.06.39.42; Tue, 25 Jan 2022 06:40:07 -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=l4Qf+2yF; 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 S238849AbiAYKGS (ORCPT + 99 others); Tue, 25 Jan 2022 05:06:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238517AbiAYJ7q (ORCPT ); Tue, 25 Jan 2022 04:59:46 -0500 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73BBEC06175E; Tue, 25 Jan 2022 01:59:44 -0800 (PST) Received: by mail-pj1-x1041.google.com with SMTP id q63so14779972pja.1; Tue, 25 Jan 2022 01:59:44 -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=gJXu3XDntG3sYuZsaAy93XgNQyjjQDdCF6KOBgCQ6T8=; b=l4Qf+2yFfQZKC8zuNjxLmbGXa1WmfnQIutDsVBe4VjYUa30G4bJXmx8CRWmeXK9tAO 16zdGhUe2dZtpd41xgzg4prgqcEizIpe/A/MBeTbUei/FcP4l08vTIU9A4WfOBlt7a2I vOJ9FkxOGwfBlEUY5drA+6kClr19yU/LSKTG8l9iRo9LRycWlOChrLg4brdA3ymmGFSS IlgsK2WmixCkmUNCbglGLRHXZ5UX8KtYPFh+k2yXkFp0y61KdH/JjUb5ZNEXFcWE6fnF mkaNdk2YBpuwgT7J74DUQoOFXdDTmih93v9KsoISfsi6D1fompENqtP+1AESiVvFjT8a 164w== 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=gJXu3XDntG3sYuZsaAy93XgNQyjjQDdCF6KOBgCQ6T8=; b=GaVBo7CJ4tPTAsq4LCI6AS7VvgSdmqOLe5rEqPKjuYof9mrTAaVRKH1GZtXkkAe8Ms c0lPVUPK/YN+k4A3QA3klvfzcPMKWJF2zbutLDEWl8gXu637sGrNc+foFVaCS0TfTKe0 sx1A0mixSVxHXmbObE4MzC2xpaOuvTqgpxEqHjxZ4nkqX6ieniPflF9LDsB/6083m+aq sjNwLeqx9P+0bwxOTPdzPWX2Dvl96Q+qy43ebSYqB9FdyTBiHPQLStsTnmG7j8G2oo+6 sHFnoTtzRAIkq9DrQU+A6SAogWItFFd+/z6MfN5mfrRWDlcWFiNePBTMUvdMsS7fgpUT KRFw== X-Gm-Message-State: AOAM532kGCLTdyeSVKCH2YpPSaWOWg1mHUZbnIICJ1qIFTBYqd3L1PuC SLUkf76IakwcvbHpqv1u/Izw9TFkWJsqUQ== X-Received: by 2002:a17:90b:3148:: with SMTP id ip8mr2731496pjb.72.1643104784108; Tue, 25 Jan 2022 01:59:44 -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.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jan 2022 01:59:43 -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 11/19] KVM: x86/svm: Remove unused "vector" of sev_vcpu_deliver_sipi_vector() Date: Tue, 25 Jan 2022 17:59:01 +0800 Message-Id: <20220125095909.38122-12-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 sev_vcpu_deliver_sipi_vector() is not used, so remove it. No functional change intended. Signed-off-by: Jinrong Liang --- arch/x86/kvm/svm/sev.c | 2 +- arch/x86/kvm/svm/svm.c | 2 +- arch/x86/kvm/svm/svm.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index 0727ac7221d7..2fd1e91054b3 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -2925,7 +2925,7 @@ void sev_es_prepare_guest_switch(unsigned int cpu) hostsa->xss = host_xss; } -void sev_vcpu_deliver_sipi_vector(struct kvm_vcpu *vcpu, u8 vector) +void sev_vcpu_deliver_sipi_vector(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 3e75ae834412..aead235a90ee 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -4348,7 +4348,7 @@ static void svm_vcpu_deliver_sipi_vector(struct kvm_vcpu *vcpu, u8 vector) if (!sev_es_guest(vcpu->kvm)) return kvm_vcpu_deliver_sipi_vector(vcpu, vector); - sev_vcpu_deliver_sipi_vector(vcpu, vector); + sev_vcpu_deliver_sipi_vector(vcpu); } static void svm_vm_destroy(struct kvm *kvm) diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h index 0a749bbda738..61c96f4a7006 100644 --- a/arch/x86/kvm/svm/svm.h +++ b/arch/x86/kvm/svm/svm.h @@ -621,7 +621,7 @@ int sev_handle_vmgexit(struct kvm_vcpu *vcpu); int sev_es_string_io(struct vcpu_svm *svm, int size, unsigned int port, int in); void sev_es_init_vmcb(struct vcpu_svm *svm); void sev_es_vcpu_reset(struct vcpu_svm *svm); -void sev_vcpu_deliver_sipi_vector(struct kvm_vcpu *vcpu, u8 vector); +void sev_vcpu_deliver_sipi_vector(struct kvm_vcpu *vcpu); void sev_es_prepare_guest_switch(unsigned int cpu); void sev_es_unmap_ghcb(struct vcpu_svm *svm); -- 2.33.1