Skip to content

Commit 722edc6

Browse files
committed
vmm: temporarily make "resize" API call fail fast
1 parent 3dc47d2 commit 722edc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vmm/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,6 +1983,10 @@ impl RequestHandler for Vmm {
19831983
) -> result::Result<(), VmError> {
19841984
self.vm_config.as_ref().ok_or(VmError::VmNotCreated)?;
19851985

1986+
if desired_vcpus.is_some() {
1987+
todo!("doesn't work currently with our thread-local KVM_RUN approach");
1988+
}
1989+
19861990
if let Some(ref mut vm) = self.vm {
19871991
if let Err(e) = vm.resize(desired_vcpus, desired_ram, desired_balloon) {
19881992
error!("Error when resizing VM: {:?}", e);

0 commit comments

Comments
 (0)