From patchwork Thu Jul 27 19:54:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nuno Das Neves X-Patchwork-Id: 127162 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:d09a:b0:134:c3fc:3153 with SMTP id jc26csp189168rwb; Thu, 27 Jul 2023 13:47:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlGsoGOFutN3jYQ0PLdurP6OXhPs0FoD9ZNDkQbJVzJyGBfolkgk58uRuqTidx2IOWCiwZ6B X-Received: by 2002:a17:902:dac1:b0:1b8:7613:594d with SMTP id q1-20020a170902dac100b001b87613594dmr5271642plx.24.1690490857529; Thu, 27 Jul 2023 13:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690490857; cv=none; d=google.com; s=arc-20160816; b=CI55VGFugsHCqAxtJfS06K6cZ0yvW+1bGQ5NxgF5HevZjzgWfr7Xh91lSAG/nCMcdA KLaLoDAXuV0HIyTLwsEXuC4iD8//lJcDRFmfGs0nDcFvGZei6hEAa/vyG4qpiDS10xDc SbOL1TQ4eyo3+RzKnVyVTCp/y23ZcW5QRb5fTgttPp+YATeNbnpwNJ8wE8JcKP/eblD8 FSapjOwpO0hEHTh6JTPa6OCAxuj64a/mXkaSXz9XVoqOQhm41S2D3+VaAE+rpAZKdVc3 aN44yTzZvju4TYdYru2IIgvNjBDslgNqSlgD+2s2+jSY5p/iSyN36IdzaqPwAfC4BVFm Rnxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature:dkim-filter; bh=0RqjEm3i5C/zl6W/8uePpKIGfaXZdi/kHbnuGmJN4PY=; fh=y8tS7hHyMnVm4J/EG8JBk7xmqgMCnIiFB1dTM3zggRY=; b=V2CD6Fd1xf2MYb39zAouwIGTF1hSv2sUrTm3fT0vb2ag7jbO6FyEscDYq52IsI3Lg7 n9erGx7mQbnsXqpydpGhkainy1UWrLbpZDPzPkJfpV0vWl+8iFNZJ28J3SuZljRZV18x zjEvNcrR9RzMZdRXIUjSvxUBWy4kmkcT1pOj8Ke/Wq9NYvn2+OSZa0Mc4PRCtJpoZmbR LixlHNiodAoSN33sA1kva4G9uToEpJCs1Fif5w5tJg/v6WjBFJII4mC15kM1Fd37yIiG Z3WUZjJ3Z9XyJN+NTGtJrH8ev4Or/xcO9xM3igJnmQ0VbItw9V8maILwyaX8rANdsFjZ +Q/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ZVGndc+9; 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=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a1709029b8c00b001b8a591d5b9si1742987plp.133.2023.07.27.13.47.25; Thu, 27 Jul 2023 13:47:37 -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=@linux.microsoft.com header.s=default header.b=ZVGndc+9; 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=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232594AbjG0Tzu (ORCPT + 99 others); Thu, 27 Jul 2023 15:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232173AbjG0TzB (ORCPT ); Thu, 27 Jul 2023 15:55:01 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7A67C2D7D; Thu, 27 Jul 2023 12:55:00 -0700 (PDT) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 8E9832380B36; Thu, 27 Jul 2023 12:54:57 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8E9832380B36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1690487697; bh=0RqjEm3i5C/zl6W/8uePpKIGfaXZdi/kHbnuGmJN4PY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZVGndc+9H5m4frgxsKqJ7FWAOIxrPv7438BrOJgJF0CxzN+hdgV0AnpWxaC2sU660 XR1hl8r7567UAEgKi7AMOQRHl3j6V1FT90kQWB+x6B733nLVki41yUY2bmGSnQ6px2 OEazc3Sl9qCw3N6pdOWJwCMkvVpurs1owBYGym4A= From: Nuno Das Neves To: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org Cc: mikelley@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, haiyangz@microsoft.com, decui@microsoft.com, ssengar@linux.microsoft.com, mukeshrathor@microsoft.com, stanislav.kinsburskiy@gmail.com, jinankjain@linux.microsoft.com, apais@linux.microsoft.com, Tianyu.Lan@microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, will@kernel.org, catalin.marinas@arm.com Subject: [PATCH 11/15] Drivers: hv: export vmbus_isr, hv_context and hv_post_message Date: Thu, 27 Jul 2023 12:54:46 -0700 Message-Id: <1690487690-2428-12-git-send-email-nunodasneves@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1690487690-2428-1-git-send-email-nunodasneves@linux.microsoft.com> References: <1690487690-2428-1-git-send-email-nunodasneves@linux.microsoft.com> X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772608141676842891 X-GMAIL-MSGID: 1772608141676842891 These will be used by the mshv_vtl driver. Signed-off-by: Nuno Das Neves Acked-by: Wei Liu --- drivers/hv/hv.c | 2 ++ drivers/hv/hyperv_vmbus.h | 1 + drivers/hv/vmbus_drv.c | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index a897951634af..6c64ef8c8aff 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -24,6 +24,7 @@ /* The one and only */ struct hv_context hv_context; +EXPORT_SYMBOL_GPL(hv_context); /* * hv_init - Main initialization routine. @@ -80,6 +81,7 @@ int hv_post_message(union hv_connection_id connection_id, return hv_result(status); } +EXPORT_SYMBOL_GPL(hv_post_message); int hv_synic_alloc(void) { diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index 55f2086841ae..85f3c08bb42b 100644 --- a/drivers/hv/hyperv_vmbus.h +++ b/drivers/hv/hyperv_vmbus.h @@ -32,6 +32,7 @@ */ #define HV_UTIL_NEGO_TIMEOUT 55 +void vmbus_isr(void); /* Definitions for the monitored notification facility */ union hv_monitor_trigger_group { diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 4757d8c23ac1..bfd367df7b60 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -1286,7 +1286,7 @@ static void vmbus_chan_sched(struct hv_per_cpu_context *hv_cpu) } } -static void vmbus_isr(void) +void vmbus_isr(void) { struct hv_per_cpu_context *hv_cpu = this_cpu_ptr(hv_context.cpu_context); @@ -1309,6 +1309,7 @@ static void vmbus_isr(void) add_interrupt_randomness(vmbus_interrupt); } +EXPORT_SYMBOL_GPL(vmbus_isr); static irqreturn_t vmbus_percpu_isr(int irq, void *dev_id) {