[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XEN][PATCH] x86/hvm: vpt: make hvm_set_guest_time() static
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
- Date: Thu, 23 Oct 2025 15:05:42 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IiiPwJEfsr6ungBjjkhX8zH549PdnKWpiqjw1o9TYKo=; b=kuiVX2T0ia8CPQqRne1dUmVQMErV3D1VyeqpWsbec2ERJbUvHU8buD9gtM4vGGtMAb4Gz34fdsIwCUuCtyTfAqPTK0jQ/ALzESi2fIcfpDUMV4O7PA+Npis+F3I2eaI2vUBzIzcE7CCYx8/QiuygFgqQk5xBhUwntwz+A1fI3LRUIeG48IZUftf4DLR/Okp7c6aZOr/W3E20pRCSpL1LY9XrtlAs7OZcUzqQFnRcIpanD7wr4AcuSektbQLXK/Lf7UZJuMwH5NX8lavMUk25APLnq9vS4OLkMHm+utjdtGG3YQjK2ij807xjStAZvKjn67mzo+ZB26OFqtkWYpomyg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lnr6GZW0N3nlTUb+Yg+BT7druvtoZYYh2dkycahnWneiPaDiV4fMo3OUnzGuaIPafAbSCxgGSWWwSDW6ln/Qh3kmrmC6NE6EDNJCBw/nhbPqMYXn1p0xR6adrKeNm+BGevvz+ktK1+o44OuAHi6TGt2VfM48Dv1W+qGOnJXY71Hjj6KV/5Ho1lZYXI/YSgVY5j9C3M7iDmLqV342q+QM+mcH7pUJyEuqD2tG9jGvgu4LJSc6pREO2X0k3Jh/LLHavz/FaxxBmKp5HRm8wmmfsPSjzD8O8vl1b30H7ubbzDcEe0egAxy+MhlbQruvcBsICqiSlPp65eizBpGC2Q1qlA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Grygorii Strashko <grygorii_strashko@xxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Thu, 23 Oct 2025 15:05:52 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcRC5/qP+fMN7O8kOa05GaXy6E0g==
- Thread-topic: [XEN][PATCH] x86/hvm: vpt: make hvm_set_guest_time() static
From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
The hvm_set_guest_time() is used only inside vpt.c, so make it static.
Signed-off-by: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
---
xen/arch/x86/hvm/vpt.c | 2 +-
xen/arch/x86/include/asm/hvm/hvm.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c
index 4d8683064479..50ed7389985a 100644
--- a/xen/arch/x86/hvm/vpt.c
+++ b/xen/arch/x86/hvm/vpt.c
@@ -48,7 +48,7 @@ uint64_t hvm_get_guest_time_fixed(const struct vcpu *v,
uint64_t at_tsc)
return now + v->arch.hvm.stime_offset;
}
-void hvm_set_guest_time(struct vcpu *v, u64 guest_time)
+static void hvm_set_guest_time(struct vcpu *v, u64 guest_time)
{
u64 offset = guest_time - hvm_get_guest_time(v);
diff --git a/xen/arch/x86/include/asm/hvm/hvm.h
b/xen/arch/x86/include/asm/hvm/hvm.h
index f02183691ea6..838ad5b59eb0 100644
--- a/xen/arch/x86/include/asm/hvm/hvm.h
+++ b/xen/arch/x86/include/asm/hvm/hvm.h
@@ -287,7 +287,6 @@ u64 hvm_scale_tsc(const struct domain *d, u64 tsc);
u64 hvm_get_tsc_scaling_ratio(u32 gtsc_khz);
void hvm_init_guest_time(struct domain *d);
-void hvm_set_guest_time(struct vcpu *v, u64 guest_time);
uint64_t hvm_get_guest_time_fixed(const struct vcpu *v, uint64_t at_tsc);
int vmsi_deliver(
--
2.34.1
|