Top | ![]() |
![]() |
![]() |
![]() |
Virtualization and emulation infoVirtualization and emulation info — Information about virtualization, hypervisors and emulation |
SrtMachineType | host-machine | Read / Write / Construct Only |
gchar * | interpreter-root | Read / Write / Construct Only |
SrtVirtualizationType | type | Read / Write / Construct Only |
SrtVirtualizationType
srt_virtualization_info_get_virtualization_type
(SrtVirtualizationInfo *self
);
If the program appears to be running in a hypervisor or emulator, return what type it is.
A recognised virtualization type, or SRT_VIRTUALIZATION_TYPE_NONE
if a hypervisor cannot be detected, or SRT_VIRTUALIZATION_TYPE_UNKNOWN
if unsure.
SrtMachineType
srt_virtualization_info_get_host_machine
(SrtVirtualizationInfo *self
);
If the program appears to be running in an emulator, try to return the
machine architecture of the host on which the emulator is running.
Otherwise return SRT_MACHINE_TYPE_UNKNOWN
.
A machine type, or SRT_MACHINE_TYPE_UNKNOWN
if the machine type cannot be detected or is not applicable
const gchar *
srt_virtualization_info_get_interpreter_root
(SrtVirtualizationInfo *self
);
If the program appears to be running under user-space emulation with
an interpreter like FEX-Emu, which behaves as though emulated libraries
from a sysroot for the emulated architecture had been overlaid onto
the real root filesystem, then return the root directory of that
sysroot. Otherwise return NULL
.
A path from which libraries for
the emulated architecture can be loaded, or NULL
if unknown or
unavailable.
[type filename][nullable]
A type of virtualization.
The vocabulary used here is chosen to be approximately compatible with systemd's ConditionVirtualization.
No virtualization detected |
||
Xen hypervisor |
||
Linux KVM hypervisor (possibly via qemu) |
||
qemu emulation without KVM, and perhaps older versions of qemu with KVM |
||
VMware virtual machine |
||
Microsoft Hyper-V virtual machine |
||
FreeBSD BHYVE |
||
QNX hypervisor |
||
ACRN hypervisor |
||
Amazon EC2 |
||
Oracle VirtualBox |
||
Bochs |
||
Parallels |
||
FEX-Emu x86 emulation |
||
Unknown virtualization type |
“host-machine”
property“host-machine” SrtMachineType
What machine the emulator is running on, if any.
Flags: Read / Write / Construct Only
Default value: SRT_MACHINE_TYPE_UNKNOWN
“interpreter-root”
property“interpreter-root” gchar *
Absolute path where libraries for the emulatedarchitecture can be found.
Flags: Read / Write / Construct Only
Default value: NULL
“type”
property“type” SrtVirtualizationType
Which virtualization type is currently in use.
Flags: Read / Write / Construct Only
Default value: SRT_VIRTUALIZATION_TYPE_UNKNOWN