mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 06:44:23 +01:00
Dragonball: add cpu resize ability
Add cpu resize ability upon upcall communication channel. Runtime could use ResizeVcpu VmmAction and pass the desired vCPU number to the Dragonball hypervisor. Dragonball will trigger the device manager service in guest kernel's upcall server to do cpu resize. Fixes: #6008 Signed-off-by: Chao Wu <chaowu@linux.alibaba.com>
This commit is contained in:
@@ -314,7 +314,7 @@ impl VmmInstance {
|
||||
return Ok(vmm_data);
|
||||
}
|
||||
Err(vmm_action_error) => {
|
||||
if let VmmActionError::UpcallNotReady = vmm_action_error {
|
||||
if let VmmActionError::UpcallServerNotReady = vmm_action_error {
|
||||
std::thread::sleep(std::time::Duration::from_millis(10));
|
||||
continue;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user