Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp332705rwb; Thu, 27 Jul 2023 13:31:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFD6PypU//uffYMqOmbtX80mV63EVA11pcIxXnGLBxwbbiKhnDPZq4TJ4aHOCVM7pw/hnW X-Received: by 2002:a17:907:7287:b0:99b:cadd:c2ee with SMTP id dt7-20020a170907728700b0099bcaddc2eemr3430241ejc.29.1690489897815; Thu, 27 Jul 2023 13:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690489897; cv=none; d=google.com; s=arc-20160816; b=lseLpFqOXY+O/SM3G0fO9/voGh2qPeQam4uhIfssWLndT/9azZUnRSvX7FKgLhxNuN 7EOoWDTvWhZs++8af35g/XDmrvD8pXIN/KqNavv9uH/IchKXaCmXkqzl2Fs2W2cvZsUq +5gbm/ODCD0ya3fuTpYpZtwgVmBs6tL2UrvFKkdvwo8mcsOI7UEpsdp7PZTsEMcK4Z6+ 5FVTKhvts7IX/wYT+HWU6C0a37EZF7qkdNA3ohbmxVpI+fcPQ0UocgZy/ZlZNYLH8iJo 5clUw9WCM9p6yncBi/ehyV84rgihgD6KwneR/9fVL/dYPnFJHOQCE16okH/zDwe/Uki9 f9XA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h24-20020aa7de18000000b005222c6fb4fasi1470785edv.0.2023.07.27.13.31.13; Thu, 27 Jul 2023 13:31: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 S232743AbjG0Tzt (ORCPT + 99 others); Thu, 27 Jul 2023 15:55:49 -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 These will be used by the mshv_vtl driver. Signed-off-by: Nuno Das Neves --- 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) { -- 2.25.1