Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3017195rdb; Fri, 22 Sep 2023 15:39:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0jas/kFp9fOpF3yayoMiM5h2+46ZlyvTh1wsdjW8aORR1gXirl+C76QxxMBm5AuZRSCAG X-Received: by 2002:a17:902:c40a:b0:1bd:d14a:7e14 with SMTP id k10-20020a170902c40a00b001bdd14a7e14mr769769plk.65.1695422394729; Fri, 22 Sep 2023 15:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695422394; cv=none; d=google.com; s=arc-20160816; b=iSV2g4IFHXtCgCyuyG7aJnjzKTSg17niE9iNGp0TmoBoEmxxpL7qKGdN4zO2fqX7hf 68TcgJf3o+5pArvEiqL6Z4Qmu5vdOdRY/I4ljwcbGkkUu4J7S7GIfBxUWvYKan94Litp gU8e9t+feDBJr47RW4bItYX5q2zYiJu/WdFWwtFM2J4/CbG3E04E9Njg8iTIPrhE3ZBT sm8WILwYKd5NUrCanzIoPGXFeY0mcrTcAD5d2aGPvmgDM7yDjHQzqOLZzx7cLrHJQpZT YQpqwvY2//IlWzfNEce9IuY+8uHvBB6a81T6r8D/B7aeU3hYsCNA/a5sK07RJziApt+9 3NWA== 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=HF/7TB3ETksYEB9KlMb0r3JzZFCijaEXdQeCMYRt1dI=; fh=rrENblR9DW+P8f8MSnFC4QkpxyTeAbSNxgPLVTXlWGs=; b=XYIEcZvldrw90sssdnH4NF57ypW6T5ApaS8YKpHxbDLVgPiJz39/8wDDAVHXYTehhc w1KLx/ZjubbAtKc0k+lbku3KQmLxPdE80iYkNjZz9q+tX/3oVOdDktJvfUjwC7L1+O0c w5GQLEqeXGXHk7Am0uH3rHhF/vVdSGPCM7uvyF1tyn9e/dFlvy1EfWGP52Cz1A4VYU43 Mkild/el2iOgqul1ZlgWsRJfb9jRaHdNfv4MNywbyA5lTS+K9Ro3ACaHxP6ghWAtgmpC MzdW6anwoNbRbsx13AVbZrCLdLmcEvEV9Xmk7JrEH6kkQWfE0bL8fe2uAd/cjT8LtB/8 HBZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=G2w4L7Fn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n9-20020a170902e54900b001c45e1f034esi4991055plf.141.2023.09.22.15.39.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 15:39:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=G2w4L7Fn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1845F82663EE; Fri, 22 Sep 2023 11:39:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233287AbjIVSjN (ORCPT + 99 others); Fri, 22 Sep 2023 14:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233405AbjIVSit (ORCPT ); Fri, 22 Sep 2023 14:38:49 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 139EBF7; Fri, 22 Sep 2023 11:38:44 -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 1416A212C7E1; Fri, 22 Sep 2023 11:38:42 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1416A212C7E1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1695407922; bh=HF/7TB3ETksYEB9KlMb0r3JzZFCijaEXdQeCMYRt1dI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G2w4L7Fnu1V9IWTR7zNpQuV5su75IStJ9JdTiCtM9OAdjaVz9FY8cIhX2DrcU9e+D Ao7dl2mV8OWOIuT7nqDDJ2AuwTM21VG5gRNoPhYp6Bm4RNn2wMkFLsc2obtnr8cnoB azGbCzcJznPnJSGooZlCT1zpcu2IpLH7r5H4/10Q= 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, gregkh@linuxfoundation.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 v3 11/15] Drivers: hv: export vmbus_isr, hv_context and hv_post_message Date: Fri, 22 Sep 2023 11:38:31 -0700 Message-Id: <1695407915-12216-12-git-send-email-nunodasneves@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1695407915-12216-1-git-send-email-nunodasneves@linux.microsoft.com> References: <1695407915-12216-1-git-send-email-nunodasneves@linux.microsoft.com> X-Spam-Status: No, score=-17.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 11:39:13 -0700 (PDT) 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 d7869205dcbe..c60a4fb55f3c 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -25,6 +25,7 @@ /* The one and only */ struct hv_context hv_context; +EXPORT_SYMBOL_GPL(hv_context); /* * hv_init - Main initialization routine. @@ -93,6 +94,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 f6b1e710f805..09792eb4ffed 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 edbb38f6956b..6d27597af8bf 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