All of lore.kernel.org
 help / color / mirror / Atom feed
* Detect Vanerpool
@ 2006-03-07 22:53 gimli
  2006-03-08  8:43 ` Keir Fraser
  2006-03-08  9:35 ` Thorolf Godawa
  0 siblings, 2 replies; 4+ messages in thread
From: gimli @ 2006-03-07 22:53 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Detect Vanerpool
  2006-03-07 22:53 Detect Vanerpool gimli
@ 2006-03-08  8:43 ` Keir Fraser
  2006-03-08 13:21   ` Andi Kleen
  2006-03-08  9:35 ` Thorolf Godawa
  1 sibling, 1 reply; 4+ messages in thread
From: Keir Fraser @ 2006-03-08  8:43 UTC (permalink / raw)
  To: gimli; +Cc: xen-devel


On 7 Mar 2006, at 22:53, gimli wrote:

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Detect Vanerpool
  2006-03-07 22:53 Detect Vanerpool gimli
  2006-03-08  8:43 ` Keir Fraser
@ 2006-03-08  9:35 ` Thorolf Godawa
  1 sibling, 0 replies; 4+ messages in thread
From: Thorolf Godawa @ 2006-03-08  9:35 UTC (permalink / raw)
  To: xen-devel

>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

-- 

Chau y hasta luego,

Thorolf

------------------------------------------------------------------
e-Mail:   mailto:Thorolf@Godawa.de                      \|/
                                                        /'~'\
Homepage: http://www.godawa.de                        ( o o )
--------------------------------------------------oOOO--(_)--OOOo-\x1a

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Detect Vanerpool
  2006-03-08  8:43 ` Keir Fraser
@ 2006-03-08 13:21   ` Andi Kleen
  0 siblings, 0 replies; 4+ messages in thread
From: Andi Kleen @ 2006-03-08 13:21 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

Keir Fraser <Keir.Fraser@cl.cam.ac.uk> writes:

> On 7 Mar 2006, at 22:53, gimli wrote:
> 
> > 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");
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-08 13:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-07 22:53 Detect Vanerpool gimli
2006-03-08  8:43 ` Keir Fraser
2006-03-08 13:21   ` Andi Kleen
2006-03-08  9:35 ` Thorolf Godawa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.