Skip to content

Commit

Permalink
Drivers: hv: Fix the bug in generating the guest ID
Browse files Browse the repository at this point in the history
Fix the bug in the generation of the guest ID. Without this fix
the host side telemetry code is broken.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Fixes: 352c962 ("Drivers: hv: vmbus: Move the definition of generate_guest_id()")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Feb 10, 2017
1 parent fda4ae1 commit 9b06e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/include/asm/mshyperv.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct ms_hyperv_tsc_page {
*
*/

#define HV_LINUX_VENDOR_ID 0x8800
#define HV_LINUX_VENDOR_ID 0x8100

/*
* Generate the guest ID based on the guideline described above.
Expand All @@ -91,7 +91,7 @@ static inline __u64 generate_guest_id(__u64 d_info1, __u64 kernel_version,
{
__u64 guest_id = 0;

guest_id = (((__u64)HV_LINUX_VENDOR_ID) << 56);
guest_id = (((__u64)HV_LINUX_VENDOR_ID) << 48);
guest_id |= (d_info1 << 48);
guest_id |= (kernel_version << 16);
guest_id |= d_info2;
Expand Down

0 comments on commit 9b06e10

Please sign in to comment.