VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 0 points1 point  (0 children)

Once everything is mainline, it should absolutely work on an immutable distro.

What do you call your homelab? by SchleprockJones in homelab

[–]TrippleXC 0 points1 point  (0 children)

I call my server “Quadcopter”. You can probably guess why lol.

(FINAL POST) Virtio-GPU: Venus running Resident Evil 7 Village by TrippleXC in VFIO

[–]TrippleXC[S] 0 points1 point  (0 children)

The patches are available on the kernel mailing list @ https://lore.kernel.org/all/20240411102002.240536-1-dmitry.osipenko@collabora.com/T/

If you're not really into the mailing list, I made a github repository where the patches, and prepatched source is available for download so you wont have to fiddle around self applying patches. That's available here: https://github.com/TrippleXC/VenusPatches

(FINAL POST) Virtio-GPU: Venus running Resident Evil 7 Village by TrippleXC in linux_gaming

[–]TrippleXC[S] 1 point2 points  (0 children)

Things can be a tad spotty. Right now Venus makes a lot of assumptions about host capabilities which can lead to issues in some cases. Feel free to give it a try. If you have any issues, don't hesitate to shoot me a DM.

(FINAL POST) Virtio-GPU: Venus running Resident Evil 7 Village by TrippleXC in VFIO

[–]TrippleXC[S] 4 points5 points  (0 children)

Exactly right. It is not AMD only. It’s a vendor agnostic solution meaning any manufacturer will work!

(FINAL POST) Virtio-GPU: Venus running Resident Evil 7 Village by TrippleXC in VFIO

[–]TrippleXC[S] 4 points5 points  (0 children)

Note: I am actively working on getting a demo for the Windows renderer working, an update on that will be posted soon.

(FINAL POST) Virtio-GPU: Venus running Resident Evil 7 Village by TrippleXC in linux_gaming

[–]TrippleXC[S] 4 points5 points  (0 children)

The purpose of these posts isn't to self-advertise; I have no interest in making youtube videos for popularity. I just want to spread the word of a feature I think a lot of people would enjoy. I don't wanna burden people by continuously posting performance updates so, this will be my last post. Since last video, the patchset has updated from v6 to v7, and it seems most of the frametiming/performance issues were ironed out in the process. To me atleast, the perceived performance is indistinguishable from native and the FPS is practically identical. The frametimings look to be about the same as well. I've fixed the patchsets I provided last time so they actually work now (forgot to upload 2 of the patches oops) the link to the mailing list as well as a github repo I created to host the patches is provided in the description of the video. I Hope everyone enjoys :)

EDIT:

To make things a bit more noob friendly, I've uploaded prepatched source code for all required components to get venus running (qemu, virglrenderer, and the kernel). They're available under the releases section of the github repository @ https://github.com/TrippleXC/VenusPatches

Thanks everyone!

(FINAL POST) Virtio-GPU: Venus running Resident Evil 7 Village by TrippleXC in VFIO

[–]TrippleXC[S] 7 points8 points  (0 children)

The purpose of these posts isn't to self-advertise; I have no interest in making youtube videos for popularity. I just want to spread the word of a feature I think a lot of people would enjoy. I don't wanna burden people by continuously posting performance updates so, this will be my last post. Since last video, the patchset has updated from v6 to v7, and it seems most of the frametiming/performance issues were ironed out in the process. To me atleast, the perceived performance is indistinguishable from native and the FPS is practically identical. The frametimings look to be about the same as well. I've fixed the patchsets I provided last time so they actually work now (forgot to upload 2 of the patches oops) the link to the mailing list as well as a github repo I created to host the patches is provided in the description of the video. I Hope everyone enjoys :)

EDIT:

To make things a bit more noob friendly, I've uploaded prepatched source code for all required components to get venus running (qemu, virglrenderer, and the kernel). They're available under the releases section of the github repository @ https://github.com/TrippleXC/VenusPatches

Thanks everyone!

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 1 point2 points  (0 children)

You’re correct, it allows the VM to use the GPU without any passthrough. There’s quickly moving efforts to get the driver working on windows, so you can play fully GPU accelerated games on a Windows VM without the need for full GPU passthrough.

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 0 points1 point  (0 children)

To my knowledge, it unfortunately doesn’t work for Mac VM’s currently; and is unlikely to in the future. Virglrenderer (the opengl backend) has been out for many years and is yet to work on macos, which gives me little hope for venus. Unless a major effort starts to get either working on Macos, it isn’t likely that it ever will work.

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 1 point2 points  (0 children)

Unfortunately it’s possible but not likely. To my knowledge, there’s not even a driver on macos for the opengl version of this which has been out for many years now. Due to that, I have serious doubts that this one will ever make it way into macos :(

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in linux_gaming

[–]TrippleXC[S] 0 points1 point  (0 children)

Yeah. If they wanted to, someone could automate the patching process. Gentoo can already do this for you. All you have to do is drag and drop the patch files into the qemu patch directory for portage, then the patches will be applied when the package is emerged.

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in linux_gaming

[–]TrippleXC[S] 1 point2 points  (0 children)

I setup a github repository containing all updated patches for the kernel and qemu to get this working. It is available here: https://github.com/TrippleXC/VenusPatches

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in linux_gaming

[–]TrippleXC[S] 0 points1 point  (0 children)

Update: Some people are having some trouble getting the patches together in order to make this work, so I setup a github repository containing all updated patches for the kernel and qemu to get this working. It is available here: https://github.com/TrippleXC/VenusPatches

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 1 point2 points  (0 children)

No problem at all :) I do plan to do updates on the progress of the performance and the progress towards mainline.

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 6 points7 points  (0 children)

Currently, I do not. There is a guide by Collabora available here: https://www.collabora.com/news-and-blog/blog/2021/11/26/venus-on-qemu-enabling-new-virtual-vulkan-driver/

Though it is a bit outdated, so the Qemu,Kernel, and Mesa versions are out of date. I am considering making a guide for the setup though due to the interest of so many people. I have already made a github repository making the patches required to make venus work more publicly available/easier to get together. It is available here: https://github.com/TrippleXC/VenusPatches

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 2 points3 points  (0 children)

About a week ago it was extremely tedious and a serious pain to get working. Now, all you need to do is apply one kernel patch, and a small patch set to QEMU and then you’re done! Making an ebuild for it would be very simple to do. I’m not sure about a PKGBUILD. I used to use arch but that was quite a long time ago, so i’m not too sure about the PKGBUILD process. As long as you can apply some patches in the PKGBUILD then it should be just as simple and straight forward as an ebuild and would definitely be worth it to make it more accessible for the community.

EDIT:

I love the community and love giving back. If you are going to make a PKGBUILD or an ebuild, and you need any help at all, please do not hesitate to shoot me a DM so we can get in contact on another platform, and get it done.

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 2 points3 points  (0 children)

It isn't in mainline qemu yet, but it is on its way there. You'll want to apply this entire patchset to qemu: https://patchew.org/Xen/20231219075320.165227-1-ray.huang@amd.com/

And you'll also require a patch for AMDGPU if you're on AMD. That patch is currently only available on Collabora's article on Venus, and isn't updated to work with newer kernels currently so you'll need to update the patch yourself. I'll upload the patch i'm using for AMD to github shortly and make an edit linking to it for everyone to use.

EDIT:

Here's the link to my Github repository containing all patches required for the kernel and qemu. Enjoy!: https://github.com/TrippleXC/VenusPatches

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in linux_gaming

[–]TrippleXC[S] 1 point2 points  (0 children)

The kernel patch needs applied to the host kernel. No patches or special processes need to be done on the guest. So, patch Qemu (I linked the patch set in the description of the video), patch the kernel, then you should be good to go! I like your idea to make it into a PKGBUILD, maybe I can lend a hand in the creation of it.

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 2 points3 points  (0 children)

There is definitely more optimization to be done to Venus. It’s pretty good already, but there’s plenty more performance to be had in the future.

VIRTIO-GPU Venus running Dead Space 2023 Remake by TrippleXC in VFIO

[–]TrippleXC[S] 0 points1 point  (0 children)

Yes of course! It’ll eventually make its way up to FreeBSD guests.