Skip to contentSkip to conversation

Detect Vanerpool

DISCUSSION gimli 4 participants 4 messages Mar 7, 2006 – Mar 8, 2006

lore
Share & tools
lore

gimli

author
#0 lore raw

Hi.

I have a new Intel iMac with the Yonah CPU. How can i determine if Vanderpool is enabled or not. What should i see in /proc/cpuinfo ? Does anyone of you work on a port of xen to efi and the Intel iMac, if so i would be intrested in help testing it.

cu

Edgar (gimli) Hucek

#1 lore raw
Quoted 2 lines · gimli

I have a new Intel iMac with the Yonah CPU. How can i determine if Vanderpool is enabled or not. What should i see in /proc/cpuinfo ?

2.6.16 Linux kernels will list 'vmx' as one of the CPU features. You cannot determine whether VMX is supported by looking at /proc/cpuinfo if you are running an earlier kernel.

-- Keir

#3 lore raw
In reply to gimli
Quoted 2 lines

I have a new Intel iMac with the Yonah CPU. How can i determine if Vanderpool is enabled or not. What should i see in /proc/cpuinfo ?

in the flags has to be somewhere "VMX", f.ex.:

processor : 0
...
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx

Signature · 9 lines
Chau y hasta luego,

Thorolf

------------------------------------------------------------------
e-Mail:   mailto:[email protected]                      \|/
                                                       /'~'\
Homepage: http://www.godawa.de                        ( o o )
--------------------------------------------------oOOO--(_)--OOOo-
#2 lore raw
In reply to Keir Fraser
Quoted 8 lines · Keir Fraser
Quoted 2 lines · gimli

I have a new Intel iMac with the Yonah CPU. How can i determine if Vanderpool is enabled or not. What should i see in /proc/cpuinfo ?

2.6.16 Linux kernels will list 'vmx' as one of the CPU features. You cannot determine whether VMX is supported by looking at /proc/cpuinfo if you are running an earlier kernel.

In theory it could be still disabled by someone (e.g. another Hypervisor) in the IA32 FEATURE MSR.

On an earlier kernel it can be tested with this simple program (modulo the feature MSR)

-Andi

/* Detect if machine supports VMX. Written 2005 by Andi Kleen */ #include <stdio.h>

static inline unsigned int cpuid_ecx(unsigned int op)

{
        unsigned int eax, ecx;

        __asm__("cpuid"
                : "=a" (eax), "=c" (ecx)
                : "0" (op)
                : "bx", "dx" );
        return ecx;
}

int main(void)

{
        unsigned f = cpuid_ecx(1);
        if (f & (1<<5))
                printf("Machine has VT\n");
        else
                printf("Machine doesn't have VT\n");
}