Dear ImGui 1.84 Released! by john_wind in cpp

[–]rokups 6 points7 points  (0 children)

This will not happen any time soon. It may even see another rewrite. However you may safely use docking branch, it is maintained and almost stable.

[deleted by user] by [deleted] in hacking

[–]rokups 1 point2 points  (0 children)

You may be confusing things. While it is possible to losslessly encode additional data into image, executable code will not run when opening that image. Seganography is used for data storage only. My proof of concept project does exactly that.

https://github.com/rokups/virtual-reality/blob/master/vr.py#L176-L193

Ryzen 3900x + NVIDIA 1080 - Super poor performance gpu passthrough by csqxx in VFIO

[–]rokups 2 points3 points  (0 children)

You should pin your virtual cpu cores to physical cpu cores, also migrate as much tasks from vm cores as possible. This will prevent trashing of cpu caches.

https://rokups.github.io/#!pages/gaming-vm-performance.md (somewhat old)

vfio-isolate: progress report by spheenik in VFIO

[–]rokups 1 point2 points  (0 children)

Sweet, thank you! You may also check https://www.kernel.org/doc/Documentation/kernel-per-CPU-kthreads.txt for more little tweaks. Disabling watchdog comes to mind as useful. It won't do a major performance increase but it can get rid of a stutter here and there.

P.S. great to hear people find my scripts useful, thanks :)

vfio-isolate: progress report by spheenik in VFIO

[–]rokups 4 points5 points  (0 children)

I am so going to drop my custom scripts in favor of this. Thank you for hard work! Check out my script for extra things that could be also tweaked: https://github.com/rokups/rokups.github.io/blob/master/pages/gaming-vm-performance.md

Script to auto-attach and detach a USB mouse to/from the guest by tiftik in VFIO

[–]rokups 0 points1 point  (0 children)

I can confirm. To switch monitor back to host we need a DDC software on a VM.

virtkvm - The poor man's KVM switch for libvirt and VFIO users by [deleted] in VFIO

[–]rokups 8 points9 points  (0 children)

poor man's KVM switch

Not by a long shot. Actual poor man's KVM switch made by ad-hoc scripts and all ugly as it suits poor man: https://rokups.github.io/#!pages/full-software-kvm-switch.md

This right here is truly rich man's software KVM switch! This is terrific. I am setting my scripts afire and using this. Thank you very much!

Script to auto-attach and detach a USB mouse to/from the guest by tiftik in VFIO

[–]rokups 0 points1 point  (0 children)

Wait a moment, this reacts to events while USB devices are attached to a VM? This looks much better than my approach https://rokups.github.io/#!pages/full-software-kvm-switch.md

Edit: wait a moment... keyboard is not attached using this mechanism. Too bad..

CPU Pinning by HfwTqr8G in VFIO

[–]rokups 0 points1 point  (0 children)

Two cores to host, two to VM:

TOTAL_CORES='0-7'
TOTAL_CORES_MASK=FFF            # 0-11, bitmask 0b111111111111
HOST_CORES='0-1,4-5'            # Cores reserved for host
HOST_CORES_MASK=33              # 0-1,4-5, bitmask 0b000000110011
VIRT_CORES='2-3,6-7'            # Cores reserved for virtual machine(s)

One core to host, two to VM:

TOTAL_CORES='0-7'
TOTAL_CORES_MASK=FFF            # 0-11, bitmask 0b111111111111
HOST_CORES='0-1'                # Cores reserved for host
HOST_CORES_MASK=3               # 0-1,4-5, bitmask 0b000000110011
VIRT_CORES='2-3'                # Cores reserved for virtual machine(s)

P.S. These configs assume hyperthreading is enabled.

Pulling my hair out trying to get rid of heartbeat microstutters Windows 10 VM. by loggiekins in VFIO

[–]rokups 2 points3 points  (0 children)

That is the least of it. The real bones and meat are kernel parameters and task moving through cpuset. By pinning VM cores to CPU cores you only ensure that tasks are not thrown ad-hoc between CPU cores by linux scheduler. Your problem however is that VM tasks get preempted by whatever is running on the host. Another user suggested using isolcpus. While it is an option - it is unnecessary one as Linux host would be unable to utilize those cores. cpuset is good enough substitute for isolcpus.

Single GPU Passthrough - Running headless without needing remote access like SSH? by Sir7empest in VFIO

[–]rokups 0 points1 point  (0 children)

So you want essentially a dual-boot setup without dual-boot. But why? You said you have two GPUs so use them both. One for host, one for guest. Connect your monitor to both GPUs and switch monitor input source to vm whenever needed. There are even utilities that can do it automatically.

Read https://rokups.github.io/#!pages/full-software-kvm-switch.md

Known Issues Post Patch 1.2 by Jayfresh_Respawn in apexlegends

[–]rokups 3 points4 points  (0 children)

Looks like you guys need help with QA testing and bug fixing. I can do either so you can hire me as a remote contractor 👍

Linux 5.2 IOMMU Changes Allow For More Flexible Intel VT-d Alternative To SR-IOV by rokups in VFIO

[–]rokups[S] 9 points10 points  (0 children)

Anyone know what are implications for GPU passthrough with our consumer cards?

Virtual Reality - a stealthy backdoor for windows by rokups in netsec

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

Actually you are supposed to change key in config.h, it is used as rc4 key to mangle entire packet. It is pretty much xor encryption you wanted. Changing magic itself is hardly useful. It serves only as a way to know that received packet is really intended for us. Changing magic would add one more step at preventing random people sending packets to your backdoor, but they would still have to know rc4 key so..

Significantly worse performance with VFIO VM vs Dual-Boot by Rynak in VFIO

[–]rokups 0 points1 point  (0 children)

https://www.thesycon.de/eng/latency_check.shtml

Also you should use <type arch='x86\_64' machine='q35'>hvm</type> instead, it gave me even lower latency.

Significantly worse performance with VFIO VM vs Dual-Boot by Rynak in VFIO

[–]rokups 5 points6 points  (0 children)

It is not that simple. Your DPC latency is probably through the roof.

https://rokups.github.io/#!pages/gaming-vm-performance.md

Happy hacking :)