diff options
author | Vipin Sharma <vipinsh@google.com> | 2022-12-12 10:37:18 -0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-02-01 13:47:56 -0800 |
commit | f65092015a83348fdc2f509e4ad8278e0c2df0cd (patch) | |
tree | ea0c508f4da382469c571c5b1522163a77ac2e7d /tools/testing/selftests | |
parent | c4a46627e5a846e59f0097e3196f142eb6142f4f (diff) | |
download | linux-stable-f65092015a83348fdc2f509e4ad8278e0c2df0cd.tar.gz linux-stable-f65092015a83348fdc2f509e4ad8278e0c2df0cd.tar.bz2 linux-stable-f65092015a83348fdc2f509e4ad8278e0c2df0cd.zip |
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>
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r-- | tools/testing/selftests/kvm/x86_64/hyperv_clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/x86_64/hyperv_clock.c b/tools/testing/selftests/kvm/x86_64/hyperv_clock.c index d576bc8ce823..2ee0af0d449e 100644 --- a/tools/testing/selftests/kvm/x86_64/hyperv_clock.c +++ b/tools/testing/selftests/kvm/x86_64/hyperv_clock.c @@ -104,7 +104,7 @@ static void guest_main(struct ms_hyperv_tsc_page *tsc_page, vm_paddr_t tsc_page_ /* Set Guest OS id to enable Hyper-V emulation */ GUEST_SYNC(1); - wrmsr(HV_X64_MSR_GUEST_OS_ID, (u64)0x8100 << 48); + wrmsr(HV_X64_MSR_GUEST_OS_ID, HYPERV_LINUX_OS_ID); GUEST_SYNC(2); check_tsc_msr_rdtsc(); |