Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4249095pxb; Tue, 25 Jan 2022 06:40:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyspvOlvrQj+xUaIV1CbiKsaP0U/K+oxwMuBMCiVel5IykAAeUC7TszC9B+Zn2QYdC5kmwt X-Received: by 2002:a05:6402:270e:: with SMTP id y14mr6844417edd.338.1643121605194; Tue, 25 Jan 2022 06:40:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643121605; cv=none; d=google.com; s=arc-20160816; b=jMxNU/osmDC4Uj1bMJWRB6b13mH8RfIEwy4ms66COYztw73Rka2UKuMNylq2qZNC8N B3LnJ0hPkeFObm3eZJpNET/l/FjbFvldtzz+Nqpo4C14FxuZlUSoJU+hRe96kdoYBFGz 36iLZZ0VOMw8S6owjr8uxicf3H8JsH4c5IKsFrS2FOi+igB4zEytGOP8ntrdRXHsxcA6 fjIGUYdNmiqlPTQ5jc6X7H60zP3zYXQgbDs8dnOFQ3DJDPiUZb/i9Ri9bnk/ars6/xfK WkyExXLH93UYqoOVQ3zbH7X6UnvdVgdkADF/bPn8hRM2jM2qCw+xeuUH6IiMvzH4PNyb eWOA== 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=YCL/z3KlGNzFsVCJ/3z3F4LH/FmJiw0KoHdi2KVVmgk=; b=X+58Ib4lBKLtOsb2Tx0C3xKOGjeJ9cJpYUllzDZgR8KxfUY5UvsWXaM2zIMaKRfMUm XSb6JBGiQZnd7M14sjvmdTqhQ4MWc+kIWUWCZu1dYm9WM/8KWL8JzGtMgFiepGfa1Mh7 4B6ETpiQmn+hLXdMXlQjofI6vfgR0i8CSIWhL4aWlWPAO4SfUXXLF1aYHBSEy63/z+/G twPxrhvjfTh8CpobCGLxqRXLTxCBhCN9F+ZKwEROmrThyllSEiyHv3rgjlmy6amCXf+w fHd0XTUkAv6Ar9S/R2TPjrfRlKSKRtDipWkQQ2hKmwM1z4e4uvLkNj/wA9+4s/+xpUrZ OF0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gVcJuLPG; 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 sa30si1420914ejc.85.2022.01.25.06.39.39; Tue, 25 Jan 2022 06:40:05 -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=gVcJuLPG; 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 S240687AbiAYKFy (ORCPT + 99 others); Tue, 25 Jan 2022 05:05:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238524AbiAYJ7q (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 20D22C061756; Tue, 25 Jan 2022 01:59:42 -0800 (PST) Received: by mail-pj1-x1041.google.com with SMTP id nn16-20020a17090b38d000b001b56b2bce31so2271291pjb.3; Tue, 25 Jan 2022 01:59:42 -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=YCL/z3KlGNzFsVCJ/3z3F4LH/FmJiw0KoHdi2KVVmgk=; b=gVcJuLPGV54zqq+spLjzSiaCND99bX63oHpJ6CucKDneVPQ4zgveS0nl2SuK31c6WA s9/RSvBxt2ab6cAM0aUY73Uuak5ORezldkllhRLXYip2s/qgHeJFndT2ZubDM8nCt6o2 AJcobDggVSijg32KWNmyczUK8JwgPMo6KXhvnuPY5sPBvBYt1bkqVl3G1MUeUimsJPn4 MvSg62qys7MfPTPR50RkZ8kBjZW4jOq1MjtzHVFWeYbDhZBJCLMWogYlyGVlL7e3SmWN OX46SAWqxHw/qTyZNzIQodX5UuLkJXJC8X+Kphs6LipNnawwZpfeZQU24LaDmWr2Y6Ji 8VMQ== 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=YCL/z3KlGNzFsVCJ/3z3F4LH/FmJiw0KoHdi2KVVmgk=; b=cSg0lMUcuzbuyjoVhJNgGb8IdV9podlYSUJmVBJpL9nhduiD0fsI0Z6EmpscfCfd21 1QYgV96YcDWNL8jPKWfCAZHfY1Qj+lFPCY0Xnv53+oRsUxEr6j794S0KRt8hwrf4U+Gj Xv8GTrEk7SgG99xCzZ8Y2k4sSU1cVdZfItWOG95IyO4P+8uTB7hkuCK6BHkyQ0NJjYBq IVQKlS0YgzqlWWo1Elk/dwm3B2ZOP25iicpZmn159uiJsQ4QAbIzq7Z93t3k7C/vWIxq qtQ/t0Sk0btJGit8xByYYEgZnIFotf/VfHIOVivh0LLngPYF3ppQHI2Jt0kKv7vguJUb 1xVA== X-Gm-Message-State: AOAM532FWQaACbs7spEGo0GDhVwnoaP5bXi8DizXlYnknD01J/R+aqJf yLj2nCgYjJPT9/hPaY8EOls= X-Received: by 2002:a17:90a:f413:: with SMTP id ch19mr2650547pjb.19.1643104781737; Tue, 25 Jan 2022 01:59:41 -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.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jan 2022 01:59:41 -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 10/19] KVM: x86/sev: Remove unused "kvm" of sev_unbind_asid() Date: Tue, 25 Jan 2022 17:59:00 +0800 Message-Id: <20220125095909.38122-11-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 *kvm" parameter of sev_unbind_asid() is not used, so remove it. No functional change intended. Signed-off-by: Jinrong Liang --- arch/x86/kvm/svm/sev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index eae234afe04e..0727ac7221d7 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -217,7 +217,7 @@ static void sev_decommission(unsigned int handle) sev_guest_decommission(&decommission, NULL); } -static void sev_unbind_asid(struct kvm *kvm, unsigned int handle) +static void sev_unbind_asid(unsigned int handle) { struct sev_data_deactivate deactivate; @@ -363,7 +363,7 @@ static int sev_launch_start(struct kvm *kvm, struct kvm_sev_cmd *argp) /* return handle to userspace */ params.handle = start.handle; if (copy_to_user((void __user *)(uintptr_t)argp->data, ¶ms, sizeof(params))) { - sev_unbind_asid(kvm, start.handle); + sev_unbind_asid(start.handle); ret = -EFAULT; goto e_free_session; } @@ -1426,7 +1426,7 @@ static int sev_receive_start(struct kvm *kvm, struct kvm_sev_cmd *argp) if (copy_to_user((void __user *)(uintptr_t)argp->data, ¶ms, sizeof(struct kvm_sev_receive_start))) { ret = -EFAULT; - sev_unbind_asid(kvm, start.handle); + sev_unbind_asid(start.handle); goto e_free_session; } @@ -2078,7 +2078,7 @@ void sev_vm_destroy(struct kvm *kvm) } } - sev_unbind_asid(kvm, sev->handle); + sev_unbind_asid(sev->handle); sev_asid_free(sev); } -- 2.33.1