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

app/vfe-vdpa: skip wait when VF not assigned to QEMU #85

Merged
merged 1 commit into from
May 15, 2024

Conversation

Ch3n60x
Copy link
Collaborator

@Ch3n60x Ch3n60x commented May 8, 2024

This commit optimizes the VF restore wait time on skip wait when the VF is not assigned to QEMU.

@@ -875,7 +876,9 @@ virtio_ha_vf_ctx_query(struct virtio_dev_name *vf,
return -1;
}

mem = (struct virtio_vdpa_dma_mem *)msg->iov.iov_base;
vfd_saved = (bool *)msg->iov.iov_base;
Copy link
Collaborator

Choose a reason for hiding this comment

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

this seems not reasonable, can we define a new struct , include bool *vfd_saved; and struct virtio_vdpa_dma_mem *mem;
after query, copy entire struct?

This commit optimizes the VF restore wait time on skip wait when the
VF is not assigned to QEMU.

Signed-off-by: Chenbo Xia <chenbox@nvidia.com>
@kailiangz1 kailiangz1 merged commit e765a8d into Mellanox:main May 15, 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
2 participants