svn commit: r297807 - head/sys/dev/hyperv/vmbus

Konstantin Belousov kostikbel at gmail.com
Mon Apr 11 09:34:25 UTC 2016


On Mon, Apr 11, 2016 at 06:15:40AM +0000, Sepherosa Ziehau wrote:
> Author: sephe
> Date: Mon Apr 11 06:15:40 2016
> New Revision: 297807
> URL: https://svnweb.freebsd.org/changeset/base/297807
> 
> Log:
>   hyperv: Print more features
>   
>   And add comment about the MSR features.
>   
>   MFC after:	1 week
>   Sponsored by:	Microsoft OSTC
> 
> Modified:
>   head/sys/dev/hyperv/vmbus/hv_hv.c
>   head/sys/dev/hyperv/vmbus/hv_vmbus_priv.h
> 
> Modified: head/sys/dev/hyperv/vmbus/hv_hv.c
> ==============================================================================
> --- head/sys/dev/hyperv/vmbus/hv_hv.c	Mon Apr 11 05:09:43 2016	(r297806)
> +++ head/sys/dev/hyperv/vmbus/hv_hv.c	Mon Apr 11 06:15:40 2016	(r297807)
> @@ -54,6 +54,9 @@ static u_int hv_get_timecount(struct tim
>  u_int	hyperv_features;
>  u_int	hyperv_recommends;
>  
> +static u_int	hyperv_pm_features;
> +static u_int	hyperv_features3;
> +
>  /**
>   * Globals
>   */
> @@ -426,27 +429,50 @@ hyperv_identify(void)
>  		return (false);
>  	}
>  	hyperv_features = regs[0];
> +	hyperv_pm_features = regs[2];
> +	hyperv_features3 = regs[3];
>  
>  	op = HV_CPU_ID_FUNCTION_MS_HV_VERSION;
>  	do_cpuid(op, regs);
>  	printf("Hyper-V Version: %d.%d.%d [SP%d]\n",
>  	    regs[1] >> 16, regs[1] & 0xffff, regs[0], regs[2]);
>  
> -	printf("  Features: 0x%b\n", hyperv_features,
> +	printf("  Features=0x%b\n", hyperv_features,
> +	    "\020"
> +	    "\001VPRUNTIME"	/* MSR_VP_RUNTIME */
> +	    "\002TMREFCNT"	/* MSR_TIME_REF_COUNT */
> +	    "\003SYNIC"		/* MSRs for SynIC */
> +	    "\004SYNTM"		/* MSRs for SynTimer */
> +	    "\005APIC"		/* MSR_{EOI,ICR,TPR} */
> +	    "\006HYERCALL"	/* MSR_{GUEST_OS_ID,HYPERCALL} */
This should be spelled HY_P_ERCALL, most likely.



More information about the svn-src-all mailing list