Skip to content

Support for display with vz driver #1597

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
Jun 2, 2023

Conversation

balajiv113
Copy link
Member

fixes #1165

@balajiv113 balajiv113 force-pushed the vz-display branch 2 times, most recently from 69a39e8 to f9b6dfb Compare June 2, 2023 06:19
@@ -32,6 +33,10 @@ func newHostagentCommand() *cobra.Command {
}

func hostagentAction(cmd *cobra.Command, args []string) error {
//Without this the call to vz.StartGUI fails. Adding it here, as this has to be called before the vz cgo loads.
runtime.LockOSThread()
defer runtime.UnlockOSThread()
Copy link
Member

Choose a reason for hiding this comment

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

Can we do this only for vz mode?

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried options, but unfortunately could find a way to make it work.

If i move this inside hostagent it will start to panic, because once within hostagent the vz cgo and all were loaded. So only if i add before cgo loads it works else ending up in panic.

I will try to add a limayaml check directly here and see if that works

Copy link
Member Author

Choose a reason for hiding this comment

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

Done the changes. Now it should impact only vz driver with display="vz"
Sending if hostagent need to run a sync ui as a command arg. In start.go deciding if we need to run a gui based on driver.

Do check it out and let me know if you have any feedback :)

AkihiroSuda
AkihiroSuda previously approved these changes Jun 2, 2023
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

Signed-off-by: Balaji Vijayakumar <[email protected]>
@AkihiroSuda AkihiroSuda merged commit 56a5d9d into lima-vm:master Jun 2, 2023
@balajiv113 balajiv113 deleted the vz-display branch November 23, 2023 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vz: support video.display
2 participants