Date: Mon, 11 Apr 2016 12:34:18 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Sepherosa Ziehau <sephe@FreeBSD.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r297807 - head/sys/dev/hyperv/vmbus Message-ID: <20160411093418.GB18263@kib.kiev.ua> In-Reply-To: <201604110615.u3B6Fexn021256@repo.freebsd.org> References: <201604110615.u3B6Fexn021256@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160411093418.GB18263>