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: disable queues in dev close #50

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

yajwu
Copy link
Collaborator

@yajwu yajwu commented Dec 4, 2023

No description provided.

@yajwu yajwu force-pushed the pr_hotplug_mem_again branch 5 times, most recently from 912a33c to c20a489 Compare December 5, 2023 04:02
vhost_user_get_vring_base calls virtio_vdpa_dev_close, then closes kickfd
and callfd. So doolbell notifier and interrupt should be released in
virtio_vdpa_dev_close.

!! Still disable qeueues in virtio_vdpa_dev_close. !!

Keep same as before 4f778ec ("vdpa/virtio: fix mem hotplug wrong queue disable").

For mem hotplug case: virtio_vdpa_dev_close called in vhost_user_set_mem_table.
Let's save the queue enable configration in a new variable and together with
queue enable to enable queues again in virtio_vdpa_dev_config.

Fixes: 4f778ec ("vdpa/virtio: fix mem hotplug wrong queue disable")
Signed-off-by: Yajun Wu <yajunw@nvidia.com>
@yajwu yajwu changed the title [Don't merge] vdpa/virtio: disable queues in dev close vdpa/virtio: disable queues in dev close Dec 5, 2023
@kailiangz1 kailiangz1 merged commit 84ce148 into Mellanox:main Dec 6, 2023
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