Skip to content

Add virtio-gpu#2

Draft
Matrix89 wants to merge 2 commits intofnuecke:mainfrom
Matrix89:main
Draft

Add virtio-gpu#2
Matrix89 wants to merge 2 commits intofnuecke:mainfrom
Matrix89:main

Conversation

@Matrix89
Copy link
Copy Markdown

@Matrix89 Matrix89 commented Jan 17, 2021

Please don't look at it yet.
The gpu works but I need to tidy up the code and squash the commits since at first I didn't even intent to make it public but after commiting on twitter I feel obliged to and it's a lot of fun.
I was a bit short on time and motivation recently, but now that I have a lot more time I'll finish it.

What's done:

  • 2D gpu mode(xorg works)
  • A basic swing GUI for it, probably should be move to sedna-cli, there also was a LWJGL GUI.

To do:

  • Tidy up commits(at first this wasn't even a fork, just another project which I then rebased onto sedna)
  • Tidy up the code(there's a lot of unused stuff, and I've just noticed that at one point IntellIj replace the gpu device name LOL)
  • Add a mechanism to restrict the GPU memory(currently the guest can just create a lot of big resources)
  • Error handling

I think 3D mode could be achieved using virgl3d but let's just put that for another time

@fnuecke
Copy link
Copy Markdown
Owner

fnuecke commented Jan 17, 2021

Super cool! Gave it a quick spin, and it gets to a black screen after the login prompt, which I presume is Xorg?
And I agree, long-term would be good to have the runner in sedna-cli. Though the name of that repo would be questionable at that point, hah. Would probably also make sense to create a branch/fork of the buildroot repo that provides the GPU/Xorg aware binaries. When/if you'd like to make a PR with your configs, let me know, and I'll set that up!

@Matrix89
Copy link
Copy Markdown
Author

Oh forgot to mention, I have a working buildroot config, I just need to clean it up a bit as well

@kristibektashi
Copy link
Copy Markdown

Any news in this?

@kristibektashi
Copy link
Copy Markdown

Still no news?

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.

3 participants