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

HA priority feature #66

Merged
merged 4 commits into from
Apr 23, 2024
Merged

HA priority feature #66

merged 4 commits into from
Apr 23, 2024

Conversation

Ch3n60x
Copy link
Collaborator

@Ch3n60x Ch3n60x commented Mar 20, 2024

This PR is for adding VF restore priority for vhost-user messages and rpc commands.

@Ch3n60x Ch3n60x force-pushed the ha_priority branch 5 times, most recently from 7c1cf63 to 0b046f3 Compare March 27, 2024 06:36
Before this commit, when we restore VFs, it will be in the order of
how we init the VFs. However, during HA recovery, QEMU could send
vhost-user messages for different purpose to specific VF. It's better
to let those VF recover first. So in this commit, we add a VF priority
mechaism based on current HA recovery and vhost-user messages could
trigger HA service to add priority VFs.

Signed-off-by: Chenbo Xia <chenbox@nvidia.com>
We already have priority mechanism for vhost-user messages, so we also
should have that for RPC commands. When specific RPC command comes, we
should raise the priority for VFs to restore first.

Signed-off-by: Chenbo Xia <chenbox@nvidia.com>
Field 'configured' is not set in virtio_vdpa_dev_vf_filter_dump(), which
leads to rpc command of list VF info will always show VF is not
configured. This commit fixes this issue.

Signed-off-by: Chenbo Xia <chenbox@nvidia.com>
This commit adds below information in RPC 'version' call:
1. Build time information of vfe-vdpa.
2. Version and build time information of virtio-ha.

Signed-off-by: Chenbo Xia <chenbox@nvidia.com>
if (ret < 0)
rte_exit(EXIT_FAILURE, "ha client dev restore failed\n");
rte_exit(EXIT_FAILURE, "ha client dev restore pf failed\n");

ret = vdpa_rpc_start(&vdpa_rpc_ctx);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rpc start after restore, why we can receive RPC msg when restore?

@kailiangz1 kailiangz1 merged commit 6467cbb into Mellanox:main Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants