NAME
cpuid, icanhasvmx – print processor information

SYNOPSIS
aux/cpuid [ –ar ]
aux/icanhasvmx [ –r ]

DESCRIPTION
Intel and compatible processors since the Pentium(tm) (or late 486) provide the CPUID instruction that returns information about the chip. The cpuid program enumerates and prints this information in a simple textual format. The output consists of multiple lines prefixed with a keyword describing the information that follows.

With the –r option, the format changes to raw hexadecimal output with the keyword being the AX input register to the CPUID instruction followed by 4 colums with the output registers AX, BX, CX and DX.

The –a option prints enumerated items in raw format if no keyword is known instead of omitting it (default).

The keywords supported so far are:
vendor
Processor vendor string
procmodel, extmodel
Processor model, hexadecimal model / family id
features, extfeatures
Feature bits, a variable list of feature acronyms
procname
Processor name string
physbits, virtbits, guestbits
Address lines, decimal in bits

Icanhasvmx queries the virtual machine extension (VMX) capabilities. If –r is specified, it prints the results in raw hexadecimal; otherwise it produces a human–readable format. In any case it prints a summary on fd 2.

EXAMPLE
term% aux/cpuid
vendor GenuineIntel
procmodel 000006b4 / 00000006
features fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36
features mmx fxsr sse
extmodel 00000000 / 00000000
procname Mobile Intel(R) Pentium(R) III CPU – M    1133MHz

SOURCE
/sys/src/cmd/aux/cpuid.c