dragonball: fix warning

Add map_err for vcpu_manager.set_reset_event_fd() function.

Fixes: #4676

Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com>
This commit is contained in:
xuejun-xj 2022-07-18 09:31:33 +08:00
parent 9f49f7adca
commit 2b01e9ba40

View File

@ -98,7 +98,8 @@ impl Vm {
);
self.vcpu_manager()
.map_err(StartMicroVmError::Vcpu)?
.set_reset_event_fd(reset_eventfd);
.set_reset_event_fd(reset_eventfd)
.map_err(StartMicroVmError::Vcpu)?;
// On aarch64, the vCPUs need to be created (i.e call KVM_CREATE_VCPU) and configured before
// setting up the IRQ chip because the `KVM_CREATE_VCPU` ioctl will return error if the IRQCHIP