Commit 5fbebb2d2095e5c7d289d5f4ffecc2f2661c584a

Authored by K. Y. Srinivasan
Committed by Greg Kroah-Hartman
1 parent c2b8e5202c

Drivers: hv: Capture the host build information

Capture the host build information so it can be presented along with the
negotiated vmbus version information.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 2 changed files with 16 additions and 0 deletions Side-by-side Diff

... ... @@ -40,6 +40,11 @@
40 40 /*
41 41 * query_hypervisor_info - Get version info of the windows hypervisor
42 42 */
  43 +unsigned int host_info_eax;
  44 +unsigned int host_info_ebx;
  45 +unsigned int host_info_ecx;
  46 +unsigned int host_info_edx;
  47 +
43 48 static int query_hypervisor_info(void)
44 49 {
45 50 unsigned int eax;
... ... @@ -76,6 +81,10 @@
76 81 ecx,
77 82 edx >> 24,
78 83 edx & 0xFFFFFF);
  84 + host_info_eax = eax;
  85 + host_info_ebx = ebx;
  86 + host_info_ecx = ecx;
  87 + host_info_edx = edx;
79 88 }
80 89 return max_leaf;
81 90 }
drivers/hv/hyperv_vmbus.h
... ... @@ -531,6 +531,13 @@
531 531  
532 532 extern void hv_synic_cleanup(void *arg);
533 533  
  534 +/*
  535 + * Host version information.
  536 + */
  537 +extern unsigned int host_info_eax;
  538 +extern unsigned int host_info_ebx;
  539 +extern unsigned int host_info_ecx;
  540 +extern unsigned int host_info_edx;
534 541  
535 542 /* Interface */
536 543