vmcheck

package
v0.0.0-...-25eff15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2017 License: Apache-2.0 Imports: 3 Imported by: 44

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsVirtualCPU

func IsVirtualCPU() bool

IsVirtualCPU checks if the cpu is a virtual CPU running on ESX. It checks for the HV bit in the ECX register of the CPUID leaf 0x1. Intel and AMD CPUs reserve this bit to indicate if the CPU is running in a HV. See https://en.wikipedia.org/wiki/CPUID#EAX.3D1:_Processor_Info_and_Feature_Bits for details. If this bit is set, the reserved cpuid levels are used to pass information from the HV to the guest. In ESX, this is the repeating string "VMwareVMware".

func IsVirtualWorld

func IsVirtualWorld() (bool, error)

IsVirtualWorld returns true if running in a VM and the backdoor is available.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL