virtio-devices: Do not close an unowned FD - #7679
Conversation
9d40305 to
2e4d552
Compare
|
All the other tests for dpdk live migration are disabled referencing #5532. I'd approve this PR with a commit that disables this failing test referencing an issue. I think this fix is clearly the right thing. There may need to be some extra fixes around migration but this currently crashing out so needs to be addressed ASAP. |
Instead of closing a file descriptor that belongs to the vhost-user frontend, drop the vu_common_ctrl::VhostUserHandle and the vhost::vhost_user::Frontend it contains. This causes the destructor to drop the file descriptor. This breaks the last DPDK test, so disable it. See cloud-hypervisor#7689. Fixes: cloud-hypervisor#7163 Signed-off-by: Demi Marie Obenour <[email protected]>
2e4d552 to
b600449
Compare
Done! Filed #7689 for the broken live migration, and also referenced #5532. |
All but one of them has been broken for over 2 years (issue cloud-hypervisor#5532), and the last one is broken (issue cloud-hypervisor#7689) by a critical bug fix (PR cloud-hypervisor#7679). There is no point in having broken tests in the repository, so delete them. They can be restored from git history if necessary. Signed-off-by: Demi Marie Obenour <[email protected]>
Instead of closing a file descriptor that belongs to the vhost-user frontend, drop the vu_common_ctrl::VhostUserHandle and the vhost::vhost_user::Frontend it contains. This causes the destructor to drop the file descriptor.