mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm, ch-remote: Add "local" option to send-migration API
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -195,6 +195,8 @@ pub struct VmReceiveMigrationData {
|
||||
pub struct VmSendMigrationData {
|
||||
/// URL to migrate the VM to
|
||||
pub destination_url: String,
|
||||
/// Send memory across socket without copying
|
||||
pub local: bool,
|
||||
}
|
||||
|
||||
pub enum ApiResponsePayload {
|
||||
|
||||
@@ -1140,8 +1140,8 @@ impl Vmm {
|
||||
send_data_migration: VmSendMigrationData,
|
||||
) -> result::Result<(), MigratableError> {
|
||||
info!(
|
||||
"Sending migration: destination_url = {}",
|
||||
send_data_migration.destination_url
|
||||
"Sending migration: destination_url = {}, local = {}",
|
||||
send_data_migration.destination_url, send_data_migration.local
|
||||
);
|
||||
if let Some(vm) = self.vm.as_mut() {
|
||||
Self::send_migration(
|
||||
|
||||
Reference in New Issue
Block a user