mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 11:35:46 +00:00
vmm: Retry running a CPU when getting EAGAIN or EINTR from the run ioctl
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
25f4063da6
commit
0b6ec34505
@ -414,10 +414,17 @@ impl<'a> Vm<'a> {
|
|||||||
VcpuExit::IoapicEoi => {}
|
VcpuExit::IoapicEoi => {}
|
||||||
VcpuExit::Hyperv => {}
|
VcpuExit::Hyperv => {}
|
||||||
},
|
},
|
||||||
Err(e) => {
|
Err(Error::VcpuRun(ref e)) => {
|
||||||
println! {"VCPU {:?} error {:?}", cpu_id, e};
|
match e.raw_os_error().unwrap() {
|
||||||
break;
|
// Why do we check for these if we only return EINVAL?
|
||||||
|
libc::EAGAIN | libc::EINTR => {}
|
||||||
|
_ => {
|
||||||
|
println! {"VCPU {:?} error {:?}", cpu_id, e};
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
_ => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user