mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +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::Hyperv => {}
|
||||
},
|
||||
Err(e) => {
|
||||
println! {"VCPU {:?} error {:?}", cpu_id, e};
|
||||
break;
|
||||
Err(Error::VcpuRun(ref e)) => {
|
||||
match e.raw_os_error().unwrap() {
|
||||
// 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