Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp946332pxb; Wed, 6 Apr 2022 05:03:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCxHB6FRzRGw48i5NDArmJ59/OFZ6JiLg7O858NfKyRXxKvg5vRCD10hVIwoOYzqiP27Ln X-Received: by 2002:a17:903:124a:b0:154:c7a4:9375 with SMTP id u10-20020a170903124a00b00154c7a49375mr8307247plh.0.1649246597575; Wed, 06 Apr 2022 05:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246597; cv=none; d=google.com; s=arc-20160816; b=pKZkFUX6wklzR/9S2Q/UqYNihVFCpsa2tbzTgAXENlkzbOQdkhK2MWl+mlUmnhp+h8 WZZPEecAZIPZhvukQ/ELhdhcYc2HeVnHAjVkbuCBgwFprqwRpwoWb624E0XA6/+xqUA+ lPFOTONnIbU5fAOAYyVZFRxSEhA8hmSUl+zUWSt/FWh9uvH7fd3HFCBoNeXqjXxIT15/ +WQ2aaJYnPuBX+AphZwDzM4fvg5JDxvZbeQRdj8G/O6JjqTtIhzBhy0goIdvoHSRwDvh IqFlTt6+kYqP1RmFk36wV1hkc/qA9VoEgfrrfO2Ja7pPy+ZOBD9uakHnA+7VresOe+M3 rnwQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ould5JBkxz/C2PbfT1aebDc3rMxdwF6wWk9hc3cfcao=; b=zndcwcuH/yTex5mnOZyxaxrMlnVqSwEGPFlK8pi6/7XF2ItHUL6cCzT27YPbuk8ewo jbzT61MoYIc4SIErSozb5KlMT8vMGZGWJy+VqmBlzLn4GfYtPV7dNCtYKf2kmbTXaFM7 Xemd/xdZrXzeS+UT38CyeQvErJQCwy4SnN8a4YIOPgmQnOVH8Xdx/oIFa42JHmMuTYW3 aL88LhTzVgNTh2sV/QD78S0aHKAJBm5J295vuf8Nk+q0Rj/VQkxOYbFSJIypgjVd6+Fy lPza29FcmeQua+RWQ2AgtsKXgumwmuKKyeJnp9X4w7B3vcFJb0vhfd5VdRTW4AxmQOr5 lAuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IBnNLeRv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e1-20020a631e01000000b003816043f0ffsi15596855pge.756.2022.04.06.05.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:03:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IBnNLeRv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C323477732; Wed, 6 Apr 2022 03:30:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1845513AbiDFBy7 (ORCPT + 99 others); Tue, 5 Apr 2022 21:54:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352823AbiDEKFK (ORCPT ); Tue, 5 Apr 2022 06:05:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8886205EB; Tue, 5 Apr 2022 02:53:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 72B56B81B13; Tue, 5 Apr 2022 09:53:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE215C385A2; Tue, 5 Apr 2022 09:53:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152434; bh=OjenJG737FwnU9dz57Y47PpcOUtRbaj0pVKRFDqpTfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IBnNLeRv8D4yOrcCrUaRPh79K26Gkf6X2OLkD1g5SIvai488RgGAlmLU3VCtDrvGy dlvF0kr2Od+WhugOAbZ/9Yxze1duZT8gXxhEgYRxCLacxbvz6PX3ysGKMIcMwwy8qI qlolX6DNVKhV7Cfnnfyv2IoiTudYKVZGH8RiU9Yw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vitaly Kuznetsov , Paolo Bonzini Subject: [PATCH 5.15 774/913] KVM: x86: hyper-v: Drop redundant ex parameter from kvm_hv_send_ipi() Date: Tue, 5 Apr 2022 09:30:36 +0200 Message-Id: <20220405070403.032251066@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vitaly Kuznetsov commit 50e523dd79f6a856d793ce5711719abe27cffbf2 upstream. 'struct kvm_hv_hcall' has all the required information already, there's no need to pass 'ex' additionally. No functional change intended. Cc: stable@vger.kernel.org # 5.14.x Signed-off-by: Vitaly Kuznetsov Message-Id: <20220222154642.684285-2-vkuznets@redhat.com> Signed-off-by: Paolo Bonzini Signed-off-by: Greg Kroah-Hartman --- arch/x86/kvm/hyperv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/arch/x86/kvm/hyperv.c +++ b/arch/x86/kvm/hyperv.c @@ -1874,7 +1874,7 @@ static void kvm_send_ipi_to_many(struct } } -static u64 kvm_hv_send_ipi(struct kvm_vcpu *vcpu, struct kvm_hv_hcall *hc, bool ex) +static u64 kvm_hv_send_ipi(struct kvm_vcpu *vcpu, struct kvm_hv_hcall *hc) { struct kvm *kvm = vcpu->kvm; struct hv_send_ipi_ex send_ipi_ex; @@ -1888,7 +1888,7 @@ static u64 kvm_hv_send_ipi(struct kvm_vc u32 vector; bool all_cpus; - if (!ex) { + if (hc->code == HVCALL_SEND_IPI) { if (!hc->fast) { if (unlikely(kvm_read_guest(kvm, hc->ingpa, &send_ipi, sizeof(send_ipi)))) @@ -2278,14 +2278,14 @@ int kvm_hv_hypercall(struct kvm_vcpu *vc ret = HV_STATUS_INVALID_HYPERCALL_INPUT; break; } - ret = kvm_hv_send_ipi(vcpu, &hc, false); + ret = kvm_hv_send_ipi(vcpu, &hc); break; case HVCALL_SEND_IPI_EX: if (unlikely(hc.fast || hc.rep)) { ret = HV_STATUS_INVALID_HYPERCALL_INPUT; break; } - ret = kvm_hv_send_ipi(vcpu, &hc, true); + ret = kvm_hv_send_ipi(vcpu, &hc); break; case HVCALL_POST_DEBUG_DATA: case HVCALL_RETRIEVE_DEBUG_DATA: