From owner-svn-src-head@freebsd.org Mon Apr 11 01:56:07 2016 Return-Path: Delivered-To: svn-src-head@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 21E50B0B93C; Mon, 11 Apr 2016 01:56:07 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com [IPv6:2607:f8b0:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DA4D7120D; Mon, 11 Apr 2016 01:56:06 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by mail-vk0-x229.google.com with SMTP id t129so108753914vkg.2; Sun, 10 Apr 2016 18:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=J6fHeZbAJ15i/ZLfrCnXmNLYq9h55qcB5RpETYAlPJU=; b=TNvcyiQid96s5YGL1iXackbtzT/l5bFwAnObMhwTYeFvlrs44LLdvhTzcWi4i67FlO 8lcDke8fAzsNS8OtOCpmlYbHEP5UzqtvYIPexL2hivw1Xh+YNXdZfctLOqO2DHovOM/A d/8OJWqKuNDMvsCu1iDRpvS3tQhtMMAi+6o6uOmck65yJc9cCST9C9U7lzsphFtV5jIe cxAf8Lp4kGp7Uf4RQaJzDMznskyK9qVPzy/3Ao97sPzXEmsKxRc/dkFsbP/sykaguK3y o2QSKzylY9Pg1p+mzvZRfx8wLSABPb53LeDSxAIc1GYm1vdg0Tir2hGv1QI5U8RxPHxs mnZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=J6fHeZbAJ15i/ZLfrCnXmNLYq9h55qcB5RpETYAlPJU=; b=EPxEj5I7Ow5Mg2AwxqZx2pE7hwBPNDaSPwUnRJwRqNfxI8brsW0cvFtgmaUpkFO64l dfoWcdXOb84drySKTwAcGLdU3/4JUVcFT35dnOefN6IgtLs9FWfSDtFgmEzrqN2dnxhi CFrtvMM+TmXA4ZEHXyYdUo975fd5BaGELnsaAdhuc+uDRJko7jKR3IhYC3opuuIUy6JH TtIyeyPPW+YQG/lUjqEya8NIP6QHjNVjwe8lLvz7KXOw2SYGbw9qhXCGtL0vRi9jwGFV nj0ogywYOw/DSQDUCHVne8uUnBjloojBj/ifHQ/DrI71KqnrOWxT+FYuBBg+wrrIVRN0 pIEw== X-Gm-Message-State: AD7BkJJRT30KO8K/2D3IRCiB0kaxyGTi2HmIHtGezGpmFXliR+KgTITqf8EcOObCTSzMysi1Z2CN8tPjwpDlfQ== MIME-Version: 1.0 X-Received: by 10.31.50.65 with SMTP id y62mr10453296vky.11.1460339765966; Sun, 10 Apr 2016 18:56:05 -0700 (PDT) Sender: sepherosa@gmail.com Received: by 10.176.64.130 with HTTP; Sun, 10 Apr 2016 18:56:05 -0700 (PDT) In-Reply-To: <2723235.iE8LVQdaEH@ralph.baldwin.cx> References: <201604080920.u389KliR048702@repo.freebsd.org> <2723235.iE8LVQdaEH@ralph.baldwin.cx> Date: Mon, 11 Apr 2016 09:56:05 +0800 X-Google-Sender-Auth: n7xWjopW2IJyXF8_S3G24pbxqo0 Message-ID: Subject: Re: svn commit: r297699 - head/sys/dev/hyperv/vmbus From: Sepherosa Ziehau To: John Baldwin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2016 01:56:07 -0000 On Fri, Apr 8, 2016 at 10:50 PM, John Baldwin wrote: > On Friday, April 08, 2016 09:20:47 AM Sepherosa Ziehau wrote: >> Author: sephe >> Date: Fri Apr 8 09:20:46 2016 >> New Revision: 297699 >> URL: https://svnweb.freebsd.org/changeset/base/297699 >> >> Log: >> hyperv: Revert r297481 >> >> Use vm_guest == VM_GUEST_HV is not enough to determine whether FreeBSD >> is running on Hyper-V or not. What a mess. >> >> Reported by: smokehydration tutanota com >> Sponsored by: Microsoft OSTC > > Ewww, does this mean Hyper-V doesn't always report itself via the VM > CPUID leafs? (Or is it not setting the HV cpuid feature bit?) Some other hypervisors reuse Hyper-V's ID. So relying on the ID==Hyper-V is not going to work. We have a patch to do more cpuids to detect the existence of the Hyper-V time counter and other bits (event timer, etc), which do not hooked to the vmbus. Thanks, sephe -- Tomorrow Will Never Die