Skip to content

Allow drivers to negotiate transport independent of hostagent #3428

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

arixmkii
Copy link
Contributor

Fixes #3177

Closes #3387

Hostagent will agree to whatever driver returns as a transport via BaseDriver interface.

This is re-implemented concept from previous one. Now it follows the maintainer recommendation in #3387 (comment)

I think we should derive best mode of transport and use it as default always. Giving these config will confuse folks using it also this transport is internal to lima guest agent

The change required was to move the configuration code from hostagent into drivers themselves to populate and then make hostagent the settings consumer.

Hostagent will agree to whatever driver returns as a transport via
BaseDriver interface.

Signed-off-by: Arthur Sengileyev <[email protected]>
@arixmkii
Copy link
Contributor Author

@balajiv113 could you take a look at this? I believe it really close to what you expected as the desired implementation.

@arixmkii
Copy link
Contributor Author

The current implementation is not much different from the original, but the idea is that later, with the drivers as plugins, they would be able to have their own config mechanisms, which will not be limayaml based and the transport type selection could be added at that later point w/o adding user facing complexity in limayaml.

Copy link
Member

@balajiv113 balajiv113 left a comment

Choose a reason for hiding this comment

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

These changes LGTM 👍

Thanks for this change this will help us in long run to support drivers as plugins.

@balajiv113 balajiv113 added this to the v1.1.0 milestone Apr 15, 2025
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit bfd792f into lima-vm:master Apr 16, 2025
31 checks passed
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.

QEMU: Support feature toggle for GA via serial port
3 participants