Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2074852rwb; Fri, 5 Aug 2022 12:45:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR6nzMvuTiqktEESEJduaTll1aEfmLuagd7jDoIXwr4ojwey5nLq7IHiBllR8TaEaHgkBFzB X-Received: by 2002:a05:6402:194f:b0:43a:298f:f39c with SMTP id f15-20020a056402194f00b0043a298ff39cmr8087252edz.106.1659728746572; Fri, 05 Aug 2022 12:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659728746; cv=none; d=google.com; s=arc-20160816; b=ajP2vME5cTmpy/+15e29Kg62ELrSmu0tTmXMUmhV3f5FHaFvbuv8fYwsePN6IgzJQ0 PozFph75bjScupDhYnwL+61ww63PdOrmO19W5YQbuj3ZAdFNhJQc2j7d/l/6gCkT2/cE 0gjuFOkseCk1i8/oTOEuEe7V0b8o9BuPmE38LIS0wYekLkBv1tK45koDf9lvZDpdFLoy /kztaXXbjfaqXL62I43MlNWpvJRoJCgB4A758jyb99OCSzgSLLLTKv1jIQKXZ7rl8PBl BY1Yxdmy3x5Xo60yf3AOjGnzp4A6djRy/jYu25pXaWOoxWXEKc7IZpNNLkrCzs10dETJ r5dA== 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=fJt+8ihDsvIqc3+fCTYKstbstOdW0KiHTWXF75LAIsc=; b=wOIsQBo+bEKshJp1+tINOkkwvgh36uwpoJYz8J+6cvAb/Ng8rHhkpC2ETMwuMZEyyo 2papPemz+nWFTzg9JgSjOhbBRtL8keo+mxMG6pa6BGAGMRhw2ZxnNWw4kysXGAbOng3Q 7ZQ9WBLTxFgW3q4g5VHD9VMd7qg3x2CQ80pbqNaICVnJc5qeooQRbpYVbpO9umCKhcwj xrGy4MDViAnWObjR4DMANMyExHdk7hXQzscNvNTmoyp7AaahmTBrrPYiNmEdFyTuvDdv ruNZiwUMYyJCIzSGr1S/ANrvoVQ7xrfhwnqtFaVSNkBVqZ1SfxYOkuAcd+5pXa89j7vc HP9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=LwND4vNW; 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 qw14-20020a1709066a0e00b007306121368esi4757626ejc.668.2022.08.05.12.45.21; Fri, 05 Aug 2022 12:45:46 -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=LwND4vNW; 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 S241549AbiHETlO (ORCPT + 99 others); Fri, 5 Aug 2022 15:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241493AbiHETlF (ORCPT ); Fri, 5 Aug 2022 15:41:05 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B749012636 for ; Fri, 5 Aug 2022 12:41:02 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id s9so4056909ljs.6 for ; Fri, 05 Aug 2022 12:41:02 -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=fJt+8ihDsvIqc3+fCTYKstbstOdW0KiHTWXF75LAIsc=; b=LwND4vNWX5iBHrLIpe8UPID7KoTe+AGnxN9IU0iE3UvNUsAAgXJOu+KcUIzZ0whOm9 MZUNqD8fDTdAo60iPWNNaZyzj+vXPwy8Mkz/ewUOfecAIJd5XVgaLk/rF0wVEY8nFtzX CJaKdVUBF0P2HoeoFFVq2tex2aZtQ1b+2mjSnP13bGPHhKSZOqyF9IdQhbAExAie8F+m AR23t1DeeYSHSqus3bgD6MgrKtMiCNEtpdlCUfBZyEjEuAkS/Rd06BabXuWAAG2QZd5T 61zTI5xXk5GWFPvVqydP/d+pdw562Ducic0q5xO0Z9ytEI6f2TXWNkLWqj8G73HAdnFI ODoQ== 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=fJt+8ihDsvIqc3+fCTYKstbstOdW0KiHTWXF75LAIsc=; b=aWFT4jTed9cImcFQk1A4vB0oLa5Ulf5XryZXUWMVqEz+zC2+NQctwmeVYOTF0uscdp DvB0uQilw213hM74k6Su1du6RSmqnhk8N6wkinU3f/t37tGgbpbi6v3OD82KSAPrTJDS kdQ9HBa/EAcSE2/FFTyB1RTGH/MkL/meqP9eWR4rY2yjkkcgv4qbQGEVQCobh2iOss/R mVbNJ9cTLAgO47j/29LI0X6sQQSCNEPwBhFRaLg/w6jzARPdENs4tA08QRpI2eJNpSvR rgDaeoHtxuJr62KlIn5wihQ3nINvGxiaswGjcm7+FnNQfEv+E532RTybOBQxtU8DARj2 dBTg== X-Gm-Message-State: ACgBeo0AypatCtmlT655oLs/mp8Pk+JluggoseL5d3EGZ1QLCztw9SzX EzNVLEaT1uXENh6gS6WVphNjlw== X-Received: by 2002:a2e:b88b:0:b0:25d:a15a:bba9 with SMTP id r11-20020a2eb88b000000b0025da15abba9mr2626624ljp.357.1659728460550; Fri, 05 Aug 2022 12:41:00 -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.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 12:41:00 -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 4/5] KVM: irqfd: Rename resampler->notifier Date: Fri, 5 Aug 2022 21:39:18 +0200 Message-Id: <20220805193919.1470653-5-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 Since resampler irqfd is now using a mask notifier along with an ack notifier, rename resampler->notifier to resampler->ack_notifier for clarity. Signed-off-by: Dmytro Maluka --- include/linux/kvm_irqfd.h | 2 +- virt/kvm/eventfd.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/kvm_irqfd.h b/include/linux/kvm_irqfd.h index 01754a1abb9e..4df9e6bbd7db 100644 --- a/include/linux/kvm_irqfd.h +++ b/include/linux/kvm_irqfd.h @@ -37,7 +37,7 @@ struct kvm_kernel_irqfd_resampler { * RCU list modified under kvm->irqfds.resampler_lock */ struct list_head list; - struct kvm_irq_ack_notifier notifier; + struct kvm_irq_ack_notifier ack_notifier; struct kvm_irq_mask_notifier mask_notifier; bool masked; bool pending; diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index f98dcce3959c..72de942dbb9c 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -70,11 +70,11 @@ irqfd_resampler_ack(struct kvm_irq_ack_notifier *kian) bool notify = true; resampler = container_of(kian, - struct kvm_kernel_irqfd_resampler, notifier); + struct kvm_kernel_irqfd_resampler, ack_notifier); kvm = resampler->kvm; kvm_set_irq(kvm, KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID, - resampler->notifier.gsi, 0, false); + resampler->ack_notifier.gsi, 0, false); spin_lock(&resampler->lock); if (resampler->masked) { @@ -137,11 +137,11 @@ irqfd_resampler_shutdown(struct kvm_kernel_irqfd *irqfd) if (list_empty(&resampler->list)) { list_del(&resampler->link); - kvm_unregister_irq_ack_notifier(kvm, &resampler->notifier); + kvm_unregister_irq_ack_notifier(kvm, &resampler->ack_notifier); kvm_unregister_irq_mask_notifier(kvm, resampler->mask_notifier.irq, &resampler->mask_notifier); kvm_set_irq(kvm, KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID, - resampler->notifier.gsi, 0, false); + resampler->ack_notifier.gsi, 0, false); kfree(resampler); } @@ -390,7 +390,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) list_for_each_entry(resampler, &kvm->irqfds.resampler_list, link) { - if (resampler->notifier.gsi == irqfd->gsi) { + if (resampler->ack_notifier.gsi == irqfd->gsi) { irqfd->resampler = resampler; break; } @@ -407,8 +407,8 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) resampler->kvm = kvm; INIT_LIST_HEAD(&resampler->list); - resampler->notifier.gsi = irqfd->gsi; - resampler->notifier.irq_acked = irqfd_resampler_ack; + resampler->ack_notifier.gsi = irqfd->gsi; + resampler->ack_notifier.irq_acked = irqfd_resampler_ack; resampler->mask_notifier.func = irqfd_resampler_mask_notify; spin_lock_init(&resampler->lock); INIT_LIST_HEAD(&resampler->link); @@ -417,7 +417,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) kvm_register_and_fire_irq_mask_notifier(kvm, irqfd->gsi, &resampler->mask_notifier); kvm_register_irq_ack_notifier(kvm, - &resampler->notifier); + &resampler->ack_notifier); irqfd->resampler = resampler; } -- 2.37.1.559.g78731f0fdb-goog