From nobody Fri Dec 19 15:17:01 2025 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66F861D5CF2; Mon, 13 Oct 2025 06:04:13 +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=1760335454; cv=none; b=Rx4kaDN+TwLlKOE1IhYfrxEk70/vZ8RY+2r0+ph81Ii9JVkHWwVXv2fkBqGDrLS7N2MFkpryv2T3R4nzyk6yJav0hijO+0+MG3MPHScWNjUureUumQgq0Ciisa2NAfPCaKHpOzS1G3XDOl/HNcOUklHKQAV1m5XUGVIWtTDDfhg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760335454; c=relaxed/simple; bh=459KdNWQufURytTJcbtoQcrl/oL3KvbNCxu9mIxHbEg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sVUSkjWtQXHFAPs3COygv6l/Q+FkwTJh1lGBa+ABWPsZG+CZ+kVQm8bRlIhy1FI5KtX9H2/NmgoYea+cRdo1K9WaDnrHDm3whDAqnAYRJGgVyDGgqgxYq2iPkvlrINp39QjZ9joln0tp+N1CD+Frsgk4xzxx6yXU3icpkQLy5L0= 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=NZe1BNab; 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="NZe1BNab" Received: from CPC-namja-1AYIP.redmond.corp.microsoft.com (unknown [4.213.232.47]) by linux.microsoft.com (Postfix) with ESMTPSA id 1E4BD211CF97; Sun, 12 Oct 2025 23:04:06 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1E4BD211CF97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1760335452; bh=/c+c+6BkWhRHRKDb8rV404TWNdXj6rWiByH2JSx5EF0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NZe1BNabI7QHyCNG5nIGAlv77CCA7/+XiQj5fOpT7GfWMuUMNXXRp1b0voMIl86jM dzqmYOSAikq+H0fGEArnXiSrswLr3ji4/9r0G4YSSegBjuav7OThqRdX/oY1EcRpAe HiD+NHzWSGwoVVexPLZsE/YIvlqRIwBlC+10JyO0= 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 v8 1/2] Drivers: hv: Export some symbols for mshv_vtl Date: Mon, 13 Oct 2025 06:03:52 +0000 Message-ID: <20251013060353.67326-2-namjain@linux.microsoft.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251013060353.67326-1-namjain@linux.microsoft.com> References: <20251013060353.67326-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/ 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 b14c5f9e0ef2..b16e94daa270 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_GPL(hv_context); =20 /* * hv_init - Main initialization routine. @@ -95,6 +97,7 @@ int hv_post_message(union hv_connection_id connection_id, =20 return hv_result(status); } +EXPORT_SYMBOL_GPL(hv_post_message); =20 int hv_synic_alloc(void) { diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index 0b450e53161e..b61f01fc1960 100644 --- a/drivers/hv/hyperv_vmbus.h +++ b/drivers/hv/hyperv_vmbus.h @@ -32,6 +32,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 69591dc7bad2..12dcf048b835 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" @@ -1306,7 +1307,7 @@ static void vmbus_chan_sched(struct hv_per_cpu_contex= t *hv_cpu) } } =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); @@ -1329,6 +1330,7 @@ static void vmbus_isr(void) =20 add_interrupt_randomness(vmbus_interrupt); } +EXPORT_SYMBOL_GPL(vmbus_isr); =20 static irqreturn_t vmbus_percpu_isr(int irq, void *dev_id) { --=20 2.43.0