mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor: Implement hypervisor agnostic variant of RegList
This helps in unification of RegList across different platforms. Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
@@ -196,6 +196,12 @@ pub enum IrqRoutingEntry {
|
||||
Mshv(mshv_bindings::mshv_user_irq_entry),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum RegList {
|
||||
#[cfg(all(feature = "kvm", any(target_arch = "aarch64", target_arch = "riscv64")))]
|
||||
Kvm(kvm_bindings::RegList),
|
||||
}
|
||||
|
||||
pub enum Register {
|
||||
#[cfg(feature = "kvm")]
|
||||
Kvm(kvm_bindings::kvm_one_reg),
|
||||
|
||||
Reference in New Issue
Block a user