qvm_guest_vmid()

Get the guest's VMID

Synopsis:

#include <qvm/aarch64/vmid.h>
uint16_t qvm_guest_vmid(void)

Description:

This function allows a vdev to get the VMID of the guest so it can, for example, pass that VMID to another service.

CAUTION:
The VMID for a guest can be specified by the vmid option in the VM configuration to override the default behavior of the hypervisor generating a VMID. In this case, it is up to the system designer to ensure the configured VMID is unique across all VMs in the system.

Returns:

The VMID, as an unsigned 16-bit integer.

Page updated: