mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor: Add an API to create default StandardRegisters
This will be used to create StandardRegisters for a given vcpu in future. Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
@@ -321,6 +321,12 @@ pub type Result<T> = anyhow::Result<T, HypervisorCpuError>;
|
||||
/// Trait to represent a generic Vcpu
|
||||
///
|
||||
pub trait Vcpu: Send + Sync {
|
||||
///
|
||||
/// Returns StandardRegisters with default value set
|
||||
///
|
||||
fn create_standard_regs(&self) -> StandardRegisters {
|
||||
unimplemented!();
|
||||
}
|
||||
///
|
||||
/// Returns the vCPU general purpose registers.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user