mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 11:35:46 +00:00
vm-migration: Add MemoryFd command for setting FDs for memory
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
b95e46565c
commit
735658a49d
@ -41,6 +41,7 @@ pub enum Command {
|
|||||||
Memory,
|
Memory,
|
||||||
Complete,
|
Complete,
|
||||||
Abandon,
|
Abandon,
|
||||||
|
MemoryFd,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Command {
|
impl Default for Command {
|
||||||
@ -85,6 +86,10 @@ impl Request {
|
|||||||
Self::new(Command::Memory, length)
|
Self::new(Command::Memory, length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn memory_fd(length: u64) -> Self {
|
||||||
|
Self::new(Command::MemoryFd, length)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn complete() -> Self {
|
pub fn complete() -> Self {
|
||||||
Self::new(Command::Complete, 0)
|
Self::new(Command::Complete, 0)
|
||||||
}
|
}
|
||||||
|
@ -937,6 +937,9 @@ impl Vmm {
|
|||||||
Response::error().write_to(&mut socket)?;
|
Response::error().write_to(&mut socket)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Command::MemoryFd => {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
Command::Complete => {
|
Command::Complete => {
|
||||||
info!("Complete Command Received");
|
info!("Complete Command Received");
|
||||||
if let Some(ref mut vm) = self.vm.as_mut() {
|
if let Some(ref mut vm) = self.vm.as_mut() {
|
||||||
|
Loading…
Reference in New Issue
Block a user