mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor: cpu: Rename state getter and setter
vcpu.{set_}cpu_state() is a stutter.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
a3342bdb25
commit
618722cdca
@@ -286,12 +286,13 @@ pub trait Vcpu: Send + Sync {
|
||||
#[cfg(any(target_arch = "arm", target_arch = "aarch64"))]
|
||||
fn get_one_reg(&self, reg_id: u64) -> Result<u64>;
|
||||
///
|
||||
/// Retrieve the current cpu states. This function is necessary to snapshot the VM
|
||||
/// Retrieve the vCPU state.
|
||||
/// This function is necessary to snapshot the VM
|
||||
///
|
||||
fn cpu_state(&self) -> Result<CpuState>;
|
||||
fn state(&self) -> Result<CpuState>;
|
||||
///
|
||||
/// Setting the FPU state this.
|
||||
/// Set the vCPU state.
|
||||
/// This function is required when restoring the VM
|
||||
///
|
||||
fn set_cpu_state(&self, state: &CpuState) -> Result<()>;
|
||||
fn set_state(&self, state: &CpuState) -> Result<()>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user