Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2075872rwb; Fri, 5 Aug 2022 12:47:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR4GZJi5Jx8cy9kV2Sh+F/vC/enSdvepi2Tp1q/sPkHhKzOWLV2sauEQNA0zrStpd8lcY4lo X-Received: by 2002:a17:907:6e17:b0:731:2426:f606 with SMTP id sd23-20020a1709076e1700b007312426f606mr39023ejc.162.1659728836767; Fri, 05 Aug 2022 12:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659728836; cv=none; d=google.com; s=arc-20160816; b=ToBo00ipXOsmsaziGT4cJdR83V0dSOyHJNtxB4rkw9LFxjeHLCYDcwAiAsJBHXYJ/e iZ7FGxhE3l1a/bT8XCfRoAoNIW/+J6Gx2NdAB2xBa+VyRcxbHXc6a2J7gjfuTwFR6awQ idqUNUkgJsfZ58JE8BQcHWtI3iUAoQpuI5Ux7ReF+OwXsJdLQUYPbCO9RtH56sCC6JNJ cOIUbvwubIftxZN5UFBcSSo+9UkcwO8wQwvJ+ekdVJha88dgf6lRMkDz35csDGFKenPW IskKoA8k+pwBX4iELsW0wH0+xsz/AJL3Dos3OGQhxK4/8VqBjX50ZX5Jymbu/uYZ0oz1 BJig== 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=4EJyKAMA651b2XcODYAopraeU2a8WMK/LvyMG5AbrCA=; b=jLaoAb+o6yM+TLyujuzI6LGL7iHAEs0pItmFDQ2yx9VwzBegm1QPOtRgyvWsKFwBkq JgPSeH9nfVfVd9p4AvIHme5Od5/I6xn3UljCTLcnMzX1n3eMgJVPEH1BYmFzM+MhD2DB UTcPoy92AIOiGWSsE3IK91L7w+IjHHzH4L1hKt9pjQ239MtjalMunsgAHojFJ0ecfWQr DiuMI8I/sQ6YyMM0t5tQiEYiacSyE0I5cqpytySvUTZSMbHnjBZXTP8eagQM6EYbfFgu L9oeE1ElcGp3Ma31bKT5WOB4mLnzTXFLEeM0KIUxxH8ot3t+DRdnIx1hwMlJzy94ZvB2 u84Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=a+0caHKP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a05640242c600b0043b6a4c1f1bsi631845edc.143.2022.08.05.12.46.49; Fri, 05 Aug 2022 12:47:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=a+0caHKP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241573AbiHETl2 (ORCPT + 99 others); Fri, 5 Aug 2022 15:41:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241504AbiHETlH (ORCPT ); Fri, 5 Aug 2022 15:41:07 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E2FA11C07 for ; Fri, 5 Aug 2022 12:41:05 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id v10so567227ljh.9 for ; Fri, 05 Aug 2022 12:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=4EJyKAMA651b2XcODYAopraeU2a8WMK/LvyMG5AbrCA=; b=a+0caHKPzVuG3onuuFuqFN0007+7/sghqkSm3qxnx3rp53REYeqJLY6NdiuFfu28d2 Kw/bFK9yFXWg1Mfyyy1UtBfsFrG38s25u2DaAQRCThlvLdzo3CzLf/86946XIbC+hjI7 qFVlvaLDi9CHs8jquTaEzdi/4zfjq1M824ZI4JX1oPfRIlpFEk9u5J/aXth61QRYZb87 5PpOTYAlSthJ1GExEOhWQ70Li1TglUYdRsxQpFs4W2/+sYWMtJbMLC5KR+Uyi2QI6ldL i+zEE7nLn1Bb6X0qdax5wx1ukq7G069alS5CZC956xP/mcPcOQsk43MRUax8UmN8mo1k gypA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=4EJyKAMA651b2XcODYAopraeU2a8WMK/LvyMG5AbrCA=; b=Ot/vdyRAwXFGz8MhrVI3cyunMb6KcACO0laPLASceaK9qXbvj1+4uBVqT8qJDmTbEo RIEDuZ/fFVHcLQcpXcLPv2xkfB56zyxJq235nQWhsFqEZ5uonOjKcXpw/4J6ZJbUD7cV /SnH7JE8BfsvDEJ2caiPtzCiRRADB22NBr2KIrVwTWdOuyXWLdsZryPnTfUGUbFUrh7O wOQw7NclrCB3/O/MIajDRJ1DvnfPYXcd3Mmp2J3Aex40COv6Rbt22qFqlNYUENbr/CIk VfQZ+4NFiMCVeNjyH+rOd8zGn8c805usT3at5gBvo9Gtg8Y6yj6pI3E9NdH/6j3RK+ZH tgXA== X-Gm-Message-State: ACgBeo0hSFAIB+RxcE7j3Zqmp92udCGCRTtLv+jH7nFsdAEJEwErAf29 +3ShjenHmVJDjmfLPr5Fks9vWQ== X-Received: by 2002:a2e:8681:0:b0:25e:7181:ddd8 with SMTP id l1-20020a2e8681000000b0025e7181ddd8mr2594995lji.199.1659728463549; Fri, 05 Aug 2022 12:41:03 -0700 (PDT) Received: from dmaluka.office.semihalf.net ([83.142.187.84]) by smtp.gmail.com with ESMTPSA id o4-20020a056512230400b0048a407f41bbsm560079lfu.238.2022.08.05.12.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 12:41:03 -0700 (PDT) From: Dmytro Maluka To: Sean Christopherson , Paolo Bonzini , kvm@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Eric Auger , Alex Williamson , Rong L Liu , Zhenyu Wang , Tomasz Nowicki , Grzegorz Jaszczyk , upstream@semihalf.com, Dmitry Torokhov , Dmytro Maluka Subject: [PATCH v2 5/5] KVM: Rename kvm_irq_has_notifier() Date: Fri, 5 Aug 2022 21:39:19 +0200 Message-Id: <20220805193919.1470653-6-dmy@semihalf.com> X-Mailer: git-send-email 2.37.1.559.g78731f0fdb-goog In-Reply-To: <20220805193919.1470653-1-dmy@semihalf.com> References: <20220805193919.1470653-1-dmy@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Now we have irq mask notifiers available in generic KVM along with irq ack notifiers, so rename kvm_irq_has_notifier() to kvm_irq_has_ack_notifier() to make it clear which notifier it is about. Signed-off-by: Dmytro Maluka --- arch/x86/kvm/ioapic.c | 2 +- include/linux/kvm_host.h | 2 +- virt/kvm/eventfd.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/ioapic.c b/arch/x86/kvm/ioapic.c index fab11de1f885..20d758ac2234 100644 --- a/arch/x86/kvm/ioapic.c +++ b/arch/x86/kvm/ioapic.c @@ -291,7 +291,7 @@ void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, ulong *ioapic_handled_vectors) for (index = 0; index < IOAPIC_NUM_PINS; index++) { e = &ioapic->redirtbl[index]; if (e->fields.trig_mode == IOAPIC_LEVEL_TRIG || - kvm_irq_has_notifier(ioapic->kvm, KVM_IRQCHIP_IOAPIC, index) || + kvm_irq_has_ack_notifier(ioapic->kvm, KVM_IRQCHIP_IOAPIC, index) || index == RTC_GSI) { u16 dm = kvm_lapic_irq_dest_mode(!!e->fields.dest_mode); diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 55233eb18eb4..ba18276691e1 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -1601,7 +1601,7 @@ int kvm_set_msi(struct kvm_kernel_irq_routing_entry *irq_entry, struct kvm *kvm, int kvm_arch_set_irq_inatomic(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool line_status); -bool kvm_irq_has_notifier(struct kvm *kvm, unsigned irqchip, unsigned pin); +bool kvm_irq_has_ack_notifier(struct kvm *kvm, unsigned irqchip, unsigned pin); void kvm_notify_acked_gsi(struct kvm *kvm, int gsi); void kvm_notify_acked_irq(struct kvm *kvm, unsigned irqchip, unsigned pin); void kvm_register_irq_ack_notifier(struct kvm *kvm, diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index 72de942dbb9c..4dd7b6f2da69 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -502,7 +502,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) return ret; } -bool kvm_irq_has_notifier(struct kvm *kvm, unsigned irqchip, unsigned pin) +bool kvm_irq_has_ack_notifier(struct kvm *kvm, unsigned irqchip, unsigned pin) { struct kvm_irq_ack_notifier *kian; int gsi, idx; @@ -521,7 +521,7 @@ bool kvm_irq_has_notifier(struct kvm *kvm, unsigned irqchip, unsigned pin) return false; } -EXPORT_SYMBOL_GPL(kvm_irq_has_notifier); +EXPORT_SYMBOL_GPL(kvm_irq_has_ack_notifier); void kvm_notify_acked_gsi(struct kvm *kvm, int gsi) { -- 2.37.1.559.g78731f0fdb-goog