x86/hvm: vpt: make hvm_set_guest_time() static
PATCH 1/1 x86/hvm: vpt: make hvm_set_guest_time() static
From: Grygorii Strashko <[email protected]>
The hvm_set_guest_time() is used only inside vpt.c, so make it static.
Signed-off-by Grygorii Strashko <[email protected]>
--- xen/arch/x86/hvm/vpt.c | 2 +- xen/arch/x86/include/asm/hvm/hvm.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
xen/arch/x86/hvm/vpt.c +1 -1
@@ -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);
xen/arch/x86/include/asm/hvm/hvm.h +0 -1
@@ -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(
Signature · 1 line
2.34.1
Quoted 5 lines · Grygorii Strashko
From: Grygorii Strashko <[email protected]>
The
hvm_set_guest_time()is used only insidevpt.c, so make it static.Signed-off-by Grygorii Strashko <[email protected]>
Reviewed-by Jason Andryuk <[email protected]>
Andrew Cooper
Acked-byQuoted 8 lines · Jason Andryuk
Quoted 5 lines · Grygorii Strashko
From: Grygorii Strashko <[email protected]>
The
hvm_set_guest_time()is used only insidevpt.c, so make it static.Signed-off-by Grygorii Strashko <[email protected]>Reviewed-by Jason Andryuk <[email protected]>
Acked-by Andrew Cooper <[email protected]>
Queued for 4.22.
~Andrew