Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vdpa/virtio: fix remove vf crash #29

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Conversation

yajwu
Copy link
Collaborator

@yajwu yajwu commented Mar 29, 2023

When virtio device back-end isn't available, virtio_vdpa_dev_close will return because of admin q command failure. Missing calling virtio_vdpa_virtq_doorbell_relay_disable causes following crash:

PANIC in eal_intr_thread_main():
Error adding fd 177 epoll_ctl, Bad file descriptor

Remove all the error return in virtio_vdpa_dev_close, so all the resource can be cleaned.

RM: 3417752

When virtio device back-end isn't available, virtio_vdpa_dev_close
will return because of admin q command failure. Missing calling
virtio_vdpa_virtq_doorbell_relay_disable causes following crash:

PANIC in eal_intr_thread_main():
Error adding fd 177 epoll_ctl, Bad file descriptor

Remove all the error return in virtio_vdpa_dev_close, so all the
resource can be cleaned.

RM: 3417752

Signed-off-by: Yajun Wu <yajunw@nvidia.com>
@kailiangz1 kailiangz1 merged commit 93bdf12 into Mellanox:main Mar 30, 2023
@yajwu yajwu deleted the fix_close_crash branch August 31, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants