From nobody Wed Nov 19 11:05:57 2025 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A942301004; Thu, 13 Nov 2025 04:42:24 +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=1763008945; cv=none; b=KWIh1tkQBAG8tvvhkU25mST9RMHzQDqa1dbVE3/b6EoF8rvQY/uefdEmk2k46zVOKPFZCOLQsb2iFZ0jxDYjDij/zFCKtEHrDnv6mzlTn6DLjV4pMBa+zCrFxEyT8vbOkW5Fu0VikWcMqZnhftXgehccmC/roSo5qP8uzouWmcg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763008945; c=relaxed/simple; bh=bCm1J99NWc4jjQqAlN/imka4xXI5Y0qBL0RgQn5Vfag=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Dp9yxY6ZqvGVvaNQ/6gOZGhLSnDyRxgZJYGPUV1RAfTQOcGuxHyO6MPo55g8T2uaGSRll8YFrI3zOFZ1Yp8erZ5aOZnto81Q0cP2VaiupGlNIliHi2h9kx+pFCoZELn3HUDo5giEHpuwGzADBecAJOzr52DYJWQTlE1eKNWpNIs= 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=FqrdLHv3; 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="FqrdLHv3" Received: from CPC-namja-1AYIP.redmond.corp.microsoft.com (unknown [4.213.232.42]) by linux.microsoft.com (Postfix) with ESMTPSA id A8BFB201336F; Wed, 12 Nov 2025 20:42:14 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A8BFB201336F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1763008943; bh=ywTpnvyUZ9q8qmgw2M1XvicAqjpo/lYW4xUhfd1xNKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FqrdLHv3Z5PJuxq7kfT0Xi/QXUsUC7cI5yUM9I4msjKVfYzZouw5FhY/CKcZKr1pF xjNuy/uUQBY2gtoQVAqjP3eA3qmElL8wm7IKObhJbTOsXDYX0az6soV1bRHL15ewNm y3IkRE5LuYOvVCp7NFZ294RVR9dxQRuzzCgN5HGU= From: Naman Jain To: "K . Y . Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Peter Zijlstra , Josh Poimboeuf , Jason Baron , Michael Kelley , Paolo Bonzini , Steven Rostedt , Ard Biesheuvel Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, Nuno Das Neves , Magnus Kulke , Kees Cook , Nathan Chancellor , Miguel Ojeda , Andrew Morton , Marc Herbert , Jan Hendrik Farr , Naman Jain , Heiko Carstens , Uros Bizjak , Sean Christopherson , Christoph Hellwig , Saurabh Sengar , ALOK TIWARI Subject: [PATCH v12 2/3] Drivers: hv: Export some symbols for mshv_vtl Date: Thu, 13 Nov 2025 04:41:48 +0000 Message-ID: <20251113044149.3710877-3-namjain@linux.microsoft.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251113044149.3710877-1-namjain@linux.microsoft.com> References: <20251113044149.3710877-1-namjain@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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@int= el.com/ Reviewed-by: Michael Kelley 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..c100f04b3581 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 @@ =20 /* The one and only */ struct hv_context hv_context; +EXPORT_SYMBOL_FOR_MODULES(hv_context, "mshv_vtl"); =20 /* * hv_init - Main initialization routine. @@ -104,6 +106,7 @@ int hv_post_message(union hv_connection_id connection_i= d, =20 return hv_result(status); } +EXPORT_SYMBOL_FOR_MODULES(hv_post_message, "mshv_vtl"); =20 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 =20 +void vmbus_isr(void); =20 /* 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..47fcab38398a 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_con= text *hv_cpu, void *message } } =20 -static void vmbus_isr(void) +void vmbus_isr(void) { struct hv_per_cpu_context *hv_cpu =3D this_cpu_ptr(hv_context.cpu_context); @@ -1362,6 +1363,7 @@ static void vmbus_isr(void) =20 add_interrupt_randomness(vmbus_interrupt); } +EXPORT_SYMBOL_FOR_MODULES(vmbus_isr, "mshv_vtl"); =20 static irqreturn_t vmbus_percpu_isr(int irq, void *dev_id) { --=20 2.43.0