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

vmbus_client: track hvsock requests and simplify RPC contract #440

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jstarks
Copy link
Member

@jstarks jstarks commented Dec 7, 2024

Track hvsock connect requests inside vmbus_client so that we can return the response (either an offer or a failure message) to the specific user that made the hvsock request. This is necessary to support multiple concurrent users of vmbus_client.

Also, separate connection-related APIs into VmbusClientAccess, leaving state machine (start/stop/save/restore) in VmbusClient. Ultimately, users of the vmbus client driver will just get VmbusClientAccess (plus OfferInfo(s) for the channels they are using).

@jstarks jstarks requested review from a team as code owners December 7, 2024 00:31
chris-oo
chris-oo previously approved these changes Dec 12, 2024
Copy link
Member

@chris-oo chris-oo left a comment

Choose a reason for hiding this comment

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

minor spelling if you want to fix it but otherwise LGTM

vm/devices/vmbus/vmbus_client/src/hvsock.rs Outdated Show resolved Hide resolved
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