From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB8A4189B84; Fri, 17 Oct 2025 07:45:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760687145; cv=none; b=jYc37A+7gQSc/ROCjK/sraQQyn7mySwosY0KUvt+7cy2jKagIB5vx+7xqW4wHJPJatnyVXWqn/+G41NZMrbyGsOPLn68tcAJAjRzRAty2jvCf0GurPTxkjt2XQzlPieFE/gr4AUNZXDeysZU3d4ayPSbYjwrK+F5sHq54ga0Rr4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760687145; c=relaxed/simple; bh=y3Gj/WbRMGKkoj7tl2On03ti94HfLD+G70hzCXYHkkw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Tlqqi4rBbP0l7tKPWO14OTWCv+g5lGWS4V5x9x7ozAz35V1YEcHHcDzn/TiphVi7wjtpfcGflduFqYcDFd/ceTh4wKX0YIbFSN9jgM1bYf5/O6sLiuuItdT687ZXqgELFJNQkjfiHdpwIuftry56IJ5u3gwNdS8Lc3/BTaT+Xts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=Gs8cWjOd; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="Gs8cWjOd" Received: from CPC-namja-1AYIP.redmond.corp.microsoft.com (unknown [4.213.232.40]) by linux.microsoft.com (Postfix) with ESMTPSA id 85D472017251; Fri, 17 Oct 2025 00:45:37 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 85D472017251 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1760687143; bh=vBZYdZvaGmcRu0+iQEmBvmob+NMHDxrCG0mCffx7EFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gs8cWjOdyKye1ZPVpxtH9+DlkKmpib5axro4ezyss8OU2CaAiZloiSKvR+alhWQxk IgFQ+fg0gsyHG/y506lxd0df1FMALe5Y1yiqTqoIQXpJiEXcBgRXzujQvE5kkIAtJO yIeDRDLp0FJflo/rxmsK46uryl3U+NEj+HCmKLlg= From: Naman Jain To: "K . Y . Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Mukesh Rathor , Stanislav Kinsburskii , Naman Jain , Nuno Das Neves , Peter Zijlstra , Sean Christopherson , Paolo Bonzini , Michael Kelley , Christoph Hellwig , Saurabh Sengar , ALOK TIWARI Subject: [PATCH v9 1/2] Drivers: hv: Export some symbols for mshv_vtl Date: Fri, 17 Oct 2025 07:45:06 +0000 Message-ID: <20251017074507.142704-2-namjain@linux.microsoft.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251017074507.142704-1-namjain@linux.microsoft.com> References: <20251017074507.142704-1-namjain@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit MSHV_VTL driver is going to be introduced, which is supposed to provide interface for Virtual Machine Monitors (VMMs) to control Virtual Trust Level (VTL). Export the symbols needed to make it work (vmbus_isr, hv_context and hv_post_message). Co-developed-by: Roman Kisel Signed-off-by: Roman Kisel Co-developed-by: Saurabh Sengar Signed-off-by: Saurabh Sengar Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202506110544.q0NDMQVc-lkp@intel.com/ Signed-off-by: Naman Jain --- drivers/hv/hv.c | 3 +++ drivers/hv/hyperv_vmbus.h | 1 + drivers/hv/vmbus_drv.c | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 936c5f310df6..c924e3294b8b 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -25,6 +26,7 @@ /* The one and only */ struct hv_context hv_context; +EXPORT_SYMBOL_GPL(hv_context); /* * hv_init - Main initialization routine. @@ -104,6 +106,7 @@ int hv_post_message(union hv_connection_id connection_id, return hv_result(status); } +EXPORT_SYMBOL_GPL(hv_post_message); static int hv_alloc_page(void **page, bool decrypt, const char *note) { diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index f7fc2630c054..b2862e0a317a 100644 --- a/drivers/hv/hyperv_vmbus.h +++ b/drivers/hv/hyperv_vmbus.h @@ -33,6 +33,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 0dc4692b411a..c9ad17ed562d 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include "hyperv_vmbus.h" @@ -1349,7 +1350,7 @@ static void vmbus_message_sched(struct hv_per_cpu_context *hv_cpu, void *message } } -static void vmbus_isr(void) +void vmbus_isr(void) { struct hv_per_cpu_context *hv_cpu = this_cpu_ptr(hv_context.cpu_context); @@ -1362,6 +1363,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.43.0