lkml.org 
[lkml]   [2013]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V
    >>> On 30.01.13 at 19:12, KY Srinivasan <kys@microsoft.com> wrote:
    > Presumably, Hyper-V emulation is only to run enlightened Windows. The issue
    > with
    > Xen is not that it emulates Hyper-V, but this emulation is turned on while
    > running Linux.
    > That is the reason I chose to check for Xen. Would you prefer a DMI check
    > for the Hyper-V
    > platform.

    I consider DMI checks to be too fragile here - in particular with
    the eventual passing through of host DMI attributes to guests,
    this sets you up for mistakes. Instead, I would envision you
    scanning the whole CPUID range "reserved" for virtualization
    (starting at 0x40000000) and see whether you get back
    anything other than the Hyper-V identification (much like the
    way xen_cpuid_base() scans for the Xen range). Of course
    that's under the premise that you're right in assuming Hyper-V
    would never emulate any other hypervisor's interface.

    Jan



    \
     
     \ /
      Last update: 2013-01-31 09:21    [W:3.332 / U:0.288 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site