mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Export VmMigrationConfig as public
Expose VmMigrationConfig as a public facing structure that can be used by an offload daemon to act as if it was the VM to migrate to, or the VM to migrate from. Signed-off-by: Sebastien Boeuf <sboeuf@meta.com> Assisted-by: Claude:claude-opus-4-7
This commit is contained in:
@@ -587,13 +587,19 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Deserialize, Serialize)]
|
#[derive(Clone, Deserialize, Serialize)]
|
||||||
struct VmMigrationConfig {
|
pub struct VmMigrationConfig {
|
||||||
vm_config: Arc<Mutex<VmConfig>>,
|
vm_config: Arc<Mutex<VmConfig>>,
|
||||||
#[cfg(all(feature = "kvm", target_arch = "x86_64"))]
|
#[cfg(all(feature = "kvm", target_arch = "x86_64"))]
|
||||||
common_cpuid: Vec<hypervisor::arch::x86::CpuIdEntry>,
|
common_cpuid: Vec<hypervisor::arch::x86::CpuIdEntry>,
|
||||||
memory_manager_data: MemoryManagerSnapshotData,
|
memory_manager_data: MemoryManagerSnapshotData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl VmMigrationConfig {
|
||||||
|
pub fn memory_manager_data(&self) -> &MemoryManagerSnapshotData {
|
||||||
|
&self.memory_manager_data
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct VmmVersionInfo {
|
pub struct VmmVersionInfo {
|
||||||
pub build_version: String,
|
pub build_version: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user