lkml.org 
[lkml]   [2008]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] Hypervisor detection and get tsc_freq from hypervisor
Mark McLoughlin wrote:
>>
>> diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h
>> index f73e95d..78478f2 100644
>> --- a/arch/x86/include/asm/cpufeature.h
>> +++ b/arch/x86/include/asm/cpufeature.h
>> @@ -117,6 +117,7 @@
>> #define X86_FEATURE_XSAVE (4*32+26) /* XSAVE/XRSTOR/XSETBV/XGETBV */
>> #define X86_FEATURE_OSXSAVE (4*32+27) /* "" XSAVE enabled in the OS */
>> #define X86_FEATURE_AVX (4*32+28) /* Advanced Vector Extensions */
>> +#define X86_FEATURE_HYPERVISOR (4*32+31) /* Running on a hypervisor */
>
> I don't see you set this anywhere.
>

This bit is set by the hypervisor in the pattern returned by the CPUID
instruction.

-hpa


\
 
 \ /
  Last update: 2008-11-10 16:35    [W:0.113 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site