hypervisor: Add MSHV implementation of VcpuInit

Extend the VcpuInit interface to accomodate changes for MSHV on aarch64.

Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
Jinank Jain
2025-02-10 07:54:03 +00:00
committed by Bo Chen
parent 630f5c1f14
commit 8c796e6d5d
2 changed files with 21 additions and 0 deletions

View File

@@ -200,6 +200,8 @@ pub enum IrqRoutingEntry {
pub enum VcpuInit {
#[cfg(all(feature = "kvm", target_arch = "aarch64"))]
Kvm(kvm_bindings::kvm_vcpu_init),
#[cfg(all(feature = "mshv", target_arch = "aarch64"))]
Mshv(mshv_bindings::MshvVcpuInit),
}
#[derive(Debug, Clone, PartialEq)]