Crate runs_inside_qemu

Crate runs_inside_qemu 

Source
Expand description

Small no_std-lib that checks if the binary is running inside a QEMU virtual machine. Only works on x86/x86_64 platform. There are no heap allocation required.

Under the hood, this is a wrapper around the awesome crate https://crates.io/crates/raw-cpuid.

Enums§

QemuCertainty
Result of runs_inside_qemu that tells with what certainty the code runs inside QEMU.

Functions§

runs_inside_qemu
Returns if the code is running inside a QEMU virtual machine. See QemuCertainty, which is the return type.