Skip to content

Commit f650920

Browse files
shvipinsean-jc
authored andcommitted
KVM: selftests: Replace hardcoded Linux OS id with HYPERV_LINUX_OS_ID
Use HYPERV_LINUX_OS_ID macro instead of hardcoded 0x8100 << 48 Signed-off-by: Vipin Sharma <vipinsh@google.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Link: https://lore.kernel.org/r/20221212183720.4062037-12-vipinsh@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent c4a4662 commit f650920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/kvm/x86_64/hyperv_clock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void guest_main(struct ms_hyperv_tsc_page *tsc_page, vm_paddr_t tsc_page_
104104

105105
/* Set Guest OS id to enable Hyper-V emulation */
106106
GUEST_SYNC(1);
107-
wrmsr(HV_X64_MSR_GUEST_OS_ID, (u64)0x8100 << 48);
107+
wrmsr(HV_X64_MSR_GUEST_OS_ID, HYPERV_LINUX_OS_ID);
108108
GUEST_SYNC(2);
109109

110110
check_tsc_msr_rdtsc();

0 commit comments

Comments
 (0)