From patchwork Thu Aug 17 22:01:47 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: 13357039 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24D06C71133 for ; Thu, 17 Aug 2023 22:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8fSXMHWTyNbqKxm/LiiBNdikCWFpmbPqVIU2sDx2f4I=; b=xjJizpjD2eGaEk +lvZKAPmrz9XOKtawlUtALD+h5drt9vI/1FJOZzMNhgOhdZfEGM3NdWp4JNvAh6T4TuheRDbpwbIS Lt9ymd0l/MgfyuaAjWRKT1eibsuIc2/g5IACycjQX0Vmw/OcJqBbqMU+PL4mSz5ItHa1jjMFsDRkc mVOKOikD7NJrGM8qa8/v9hraQOBbMoSUWV98tuB/FKx73JX2pPM5INdkAHOA7pZvTJw1RjvxD8Xix n5RMoWDipngENbFhLvt8MD9bVi6jMKjuKUS6U9n9o4FD6xQH4rurf//V+rqccnvGODKomjbUuA1Vw dAbXZcUMQIxg++yBu6Bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWl4S-007Df1-1O; Thu, 17 Aug 2023 22:02:24 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWl48-007DT3-2a for linux-arm-kernel@lists.infradead.org; Thu, 17 Aug 2023 22:02:08 +0000 Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id E46E7211F921; Thu, 17 Aug 2023 15:01:59 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E46E7211F921 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1692309720; bh=qmrqKdfNJEZ+B3GvHGJ6OaKfbOfxe1i1kETlNozQ7zo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mZv3RegQmGnGuC8uc1r47qV6HAfiMAQ7rUW8UDrCjJh7ItIIVWLo+Pw23y/Z8Qxq+ rNHcdNpmC1vGfT9c2NuXiJsUq/UaASjQ7GpcqZ50S2g8nqi0loA4j3g6KUTCRgQqiQ AHHxzV4PiwKxtI3Ylp+7VFZlsFbvzeZaluVtS65g= 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: patches@lists.linux.dev, mikelley@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, haiyangz@microsoft.com, decui@microsoft.com, apais@linux.microsoft.com, Tianyu.Lan@microsoft.com, ssengar@linux.microsoft.com, mukeshrathor@microsoft.com, stanislav.kinsburskiy@gmail.com, jinankjain@linux.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 v2 11/15] Drivers: hv: export vmbus_isr, hv_context and hv_post_message Date: Thu, 17 Aug 2023 15:01:47 -0700 Message-Id: <1692309711-5573-12-git-send-email-nunodasneves@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1692309711-5573-1-git-send-email-nunodasneves@linux.microsoft.com> References: <1692309711-5573-1-git-send-email-nunodasneves@linux.microsoft.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230817_150204_890091_1E13C319 X-CRM114-Status: GOOD ( 12.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 7929554d32f7..62333ed5fe08 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. @@ -75,6 +76,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 67f95a29aeca..d688bc6b8bea 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) {