mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 00:37:24 +00:00
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:
parent
9f49f7adca
commit
2b01e9ba40
@ -98,7 +98,8 @@ impl Vm {
|
|||||||
);
|
);
|
||||||
self.vcpu_manager()
|
self.vcpu_manager()
|
||||||
.map_err(StartMicroVmError::Vcpu)?
|
.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
|
// 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
|
// setting up the IRQ chip because the `KVM_CREATE_VCPU` ioctl will return error if the IRQCHIP
|
||||||
|
Loading…
Reference in New Issue
Block a user