From owner-svn-src-all@freebsd.org Mon Apr 11 06:33:55 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4EC47B0B223; Mon, 11 Apr 2016 06:33:55 +0000 (UTC) (envelope-from rpokala@mac.com) Received: from mr11p00im-asmtp003.me.com (mr11p00im-asmtp003.me.com [17.110.69.254]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3C2901E5E; Mon, 11 Apr 2016 06:33:55 +0000 (UTC) (envelope-from rpokala@mac.com) Received: from [192.168.1.4] (c-50-174-208-73.hsd1.ca.comcast.net [50.174.208.73]) by mr11p00im-asmtp003.me.com (Oracle Communications Messaging Server 7.0.5.36.0 64bit (built Sep 8 2015)) with ESMTPSA id <0O5G00LCYI8CYR00@mr11p00im-asmtp003.me.com>; Mon, 11 Apr 2016 06:33:49 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-04-11_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1604110099 User-Agent: Microsoft-MacOutlook/0.0.0.160212 Date: Sun, 10 Apr 2016 23:33:47 -0700 Subject: Re: svn commit: r297808 - head/sys/dev/hyperv/vmbus From: Ravi Pokala Sender: "Pokala, Ravi" To: Sepherosa Ziehau , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-id: Thread-topic: svn commit: r297808 - head/sys/dev/hyperv/vmbus References: <201604110622.u3B6MRlm024341@repo.freebsd.org> In-reply-to: <201604110622.u3B6MRlm024341@repo.freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2016 06:33:55 -0000 Thank you! -Ravi (rpokala@) -----Original Message----- From: on behalf of Sepherosa Ziehau Date: 2016-04-10, Sunday at 23:22 To: , , Subject: svn commit: r297808 - head/sys/dev/hyperv/vmbus >Author: sephe >Date: Mon Apr 11 06:22:26 2016 >New Revision: 297808 >URL: https://svnweb.freebsd.org/changeset/base/297808 > >Log: > hyperv: Define macro for Hyper-V interface > > Suggested by: rpokala > MFC after: 1 week > Sponsored by: Microsoft OSTC > >Modified: > head/sys/dev/hyperv/vmbus/hv_hv.c > >Modified: head/sys/dev/hyperv/vmbus/hv_hv.c >============================================================================== >--- head/sys/dev/hyperv/vmbus/hv_hv.c Mon Apr 11 06:15:40 2016 (r297807) >+++ head/sys/dev/hyperv/vmbus/hv_hv.c Mon Apr 11 06:22:26 2016 (r297808) >@@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$"); > > #define HV_NANOSECONDS_PER_SEC 1000000000L > >+#define HYPERV_INTERFACE 0x31237648 /* HV#1 */ > > static u_int hv_get_timecount(struct timecounter *tc); > >@@ -416,7 +417,7 @@ hyperv_identify(void) > > op = HV_CPU_ID_FUNCTION_HV_INTERFACE; > do_cpuid(op, regs); >- if (regs[0] != 0x31237648 /* HV#1 */) >+ if (regs[0] != HYPERV_INTERFACE) > return (false); > > op = HV_CPU_ID_FUNCTION_MS_HV_FEATURES; >