Files
cloud-hypervisor/hypervisor
Oliver Anderson d2d13beb28 hypervisor: hypervisor_type method on Vcpu trait
Although it is already possible to obtain the hypervisor type from the
hypervisor trait object, there is currently no way for functions that
only have a vCPU object to work with to know what the hypervisor
backend is.

In the rare case where there is significant divergence between the
supported hypervisor backends when working with vCPU objects the caller
must necessarily branch on the hypervisor type.

We thus introduce a hypervisor_type method on the Vcpu trait.

This will be utilized in a follow up commit where we need special
handling when configuring MSRs of vCPUs.

Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de>
On-behalf-of: SAP oliver.anderson@sap.com
2026-07-28 10:55:18 +00:00
..